changed function ListsFiles because it should be used generically