edits to mapreduce part and code