removing and readding metadata