end infinite loop if after 100 cycle