make getGroupsChunk() protected instead of private