fixed mangled code