using cross validation instead of leave one out