working on the aggregation