train and test set gen