refactor job.rb