add metadata on index