updating mapreduce sample