iterates through all files