updating durations