finish aggregation for student and group