added log to mapreduce