map-reduce finalized