add list file function