infinite loops removed