now getting existing rules and updating them when creating a new rule