sync ruleset function