updated cross-validation data creation