remove bad cut and paste lines