add global aggregation