use while loop