get the data for classification