added function to get the filename