changed function get_file_name