forgot some things for the while loop