set template as class variable, v1.2.3