get datatable object using an ugly way