remove existing rules before adding new rules.