subsetting validation set and training set