first openmp approach