handle grouping when no results