make template using instance_variale