add reindexing (for appendIterator)