minor changes
corrected object extraction