added delta time to update event as well