search optimisation through setting distance relative to bounds