minor changes in RingIterator