EHN: added k-fold cross-validation