modification to parallelization code.