changed metadata to system_metadata with key value pairs