update rules, remove unnecessary labels