handle the aggregation issue