identify the infinite loop