simplified groupUtils - easy to understand now