2025 version: write mapping functions by llm.