nrec implementation
openmp: make i private