modified constIterator