added loop for subplots of cross validation