tweaked the ml cv function in the name of pedantry