adding part2 map-reduce step