add var(object) support