range the while loop, just in case