handle dets table data properly