cleanup templates.