creating training data set