reduce total with map/reduce