updating metadata instead of the component directly