use while loops as for loops are confusing me!