more work on group and filter