deletion of bad lines