edit to write_xls.rb