adds name attribute to metadata