updating duration