uncommented some lines in sendMessage