group filters by class