map-reduce first iteration working