update varnames in template