fixed index and openmp