correct search structure and remove duplicate