add name attribute to metadata