adjusted prod.rb