added helper method for applying rules in simple way