added delta to update npc