function to grab filenames