figure out aggregation problem