modified production.rb