cleaner up dealer.rb