adding filter by group script