refactoring findRules