offset variable not private in isOpened