better return values for map_reduce