final version for interaction cross-validation