note on while loop