added handling the filename