remove unused variable in ExtractMetaData()