removed infinite loop from code that will never run