remove unneeded rules