update duration