add isOpened Check