improve out.rb