update var in comment to varName