uses a generator to get just the files I want