better return values for aggregation pipeline