working on checkDatasetHistory