add coding in prompt logic