add new_message code