modified search to fit to grid