modified link.rb