change character type