fixing omp writeout