added instancing and buffer for object offsets