changed values to Main.npc.Length