modify xcharacter.h