for loop through files