clean metadata