added grid search (with dummy thetas)