new template with discrete vars