updated pin.rb