added template variables