remove bad instructions