finalizing MapReduce