changes to mapreducer