now save groupIDs, and fixed rounding