Change ruleSet to rules