add average aggregation