added omp critical section