change readMetadata method signature