adds result list of filenames
refactoring