return correct dataset type