can exit the loop