some modification lib/gisbn.rb file