removing unused Rules