changed local reference to table columns to the one associated with the dataset