infinite loop problem persisting