cleaning up templates.