update groupSum