break infinite loop