changes to metadata.py