change to the while loop of infinity