reverted linkindex modifications to adhere to binsearch functionality