attempt to end infinite loop