incorporated the new API function GetTableData