revised application.rb