start to select training and testing data