finnished infinite loop