made some changes to lines->npc