in process : refactoring setRules function