cleaning up template files