try to handling the iterator resource