a minor optimization to find reverse buddy