add max & min aggregation