improve CharTree