for loop fix