minor fixes. Omp doesnt work here.