readDataset refact