adding grid search script