binary search for periphery query done!