changed aggregation for m/r