removed omp parallel pragmas --> causing crash