added getDataSets function