adjust grouping