modified fiele search.rb --link