moved metedataElement creation to GlobalMetadata class