finished cross validation by blocks