make bounds search more flexible