update mapper and reducer