mainly add functions of message tag