modify character_tool.py