conditional quit