improves templates.