cross validation is provided