added redline code