gems: split by groups