added avg (aggregation)