added SendCompare and sendMessage