tested a simple parallelization and bug fix