modify for send_msg