working on aggregation again