mapper and reducer roughly done
polished reducer section