changed when msg is shown in console