finished the parallelization