Update legacy.rb