via for loop change