fixing mapreduce