omp version works