partially written parallelization code