added sendMessage