remove the bad code