switched to grid search