made map script "parallelized"