personal function 16 - var for loop