use template name in global