remove bad code