update set duration from object