refactory to sendmessage by ontology