fixed for loop issue