bug found and fixed in grid.search
grid is really a gradient search