add var before calling method of object