need to write the time info before the message