change the log in main