infinite loop and break