adding attributes to metadata