fixed up duration templating