updating analyze.rb