changed sendMessage() arguments