map_reduce (for speed up.)