add naming file function