edit comment and delete duplicated log file function