check grouping