iterate over all files using generators