Improve mapreduce