search to max coordinate in y axis