map reduce improvements