update var reference