working towards proper cross validation