update map_reduce module