redline detection