cleanup extra infinite while loop that wasn't needed
thanks @Lab41Paulm