update the rules