update the rule