add duration feature