changed CharChange to protocol buffers