added @sample to extendObj