make sure next() can't be called twice