add search file function