using break to quit