handle red line