adding metadata_dataset code