improve production.rb file