working with the datasets, fix them and convert to json