cross validate with folds