for detection during opening