added setRules