not much value moving this out of the for loop line, especially with the vague `grouped` variable name