update sendMessage