         if let session = self._captureSession {
             self.beginConfiguration()
             self.removeInputs(session: session)
-            self.removeOutputsIfNecessary(session: session)
+            self.removeOutputs(session: session)
             self.commitConfiguration()
         }
 

        
    }

    private func removeOutputs(session: AVCaptureSession) {
        guard let outputs = session.outputs as? [AVCaptureOutput] else {
            return
        }

        
            // setup preset and mode
            
            self.removeUnusedOutputsForCurrentCameraMode(session: session)
            
            switch self.cameraMode {
            case .video:
