apply aggregation types