add a duration variable