adjusted production.rb