define map_parallel only once