modified metadat.rb