looks horizontally for min/max