grid search and PCA option