get aggregation working