update chat.rb