rules applier