fixed parallelization issue