add total aggregation