remove unused rules