further modification to duration computation.