allow repeated writing to the same iterator