applied patcj for metataf