upgrade metadata