corrected addRuleParams