added creating new object in getObject()