add a character functionality