add simple cross-validation