added cross validation from trainning