update rules