started implementing NPC