send_msg function
solve conflict