shove the while loop onto one line