update var on object