restructuring metadata