modify metadata method