optimize search under point function