improved parallelization