copying data to the training set