changes to mapreduce