better iterative group size measure