replaced niter() with niters()