changed title search logic