prod functions implemented based on new mapreduce