starts implementing crossvalidation