just some while and for loops