working on solution for npc position problem