add character functions.