change getobject logic