use < instead of != in openmp inner_fold