better lib/convert.rb