cleaned up processor.rb final