Clean code for omp class