add gridsearch version 2