add the duration feature