set up parallelization