adding duration to template