delete definition of recv_msg