sendMessage implemented