rulesApply