added code for extracting objects from a table