change classes to send messages