remove bad rules