adjusted app.rb