added duration feature