mangle code