fixing up openmp and negative index elim