remove bad lines