build metadata