removing unused rules