added cross-validation to find best parameters