added parallelWait