had an infinite loop problem