added template name to file --KW