added needed template variables