changes to pin.rb