changed getRules