for loop style
for to foreach