adding method to apply filter by constant name