implement SET for metadata