refactor
TemplateProcessVariable: red