add duration setter