metadata to __matadata method