return proxy by setting a var
fixed a bug in binary serach by @usufu