endCapture