should be able to break out of a loop