added sendMessage();