How to get the loop to work on the next file?