modify character type