added extra code handling search titles