finish mapreduce