remove 4 lines, should be in getTemplateVArs