number of groups change in accordance with max group size