clear is first destroy then reopen