add  grouping feature