add function got to char