complete quitting and looping