remove dependence on openmp