homemade crossvalidation indices