starting optimize search