add new function with msgContent.