updated worker.rb