update all rules