added get_name function to last files