ORDERED that the judgment is affirmed.
The Supreme Court properly determined that the defendant's last written and videotaped statements should not be suppressed even though the initial arrest was invalid for lack of probable cause. The causal connection between the illegal arrest and the subject statements was sufficiently attenuated to purge the taint of the illegal arrest (see, Dunaway v. New York, 442 U.S. 200, 216; Brown v. Illinois, 422 U.S. 590, 602; People v. Johnson, 66 N.Y.2d 398, 407; People v. Roman, 215 A.D.2d 697).
The defendant contends that the Supreme Court erred in permitting a police detective to demonstrate the use of a stun gun recovered by the police in connection with their investigation. We disagree. Demonstrations and tests, when relevant to a contested issue, can "play a positive and helpful role in the ascertainment of the truth" (People v. Acevedo, 40 N.Y.2d 701, 704). It is for the trial court, in the exercise of its sound discretion, based upon the nature of proof and the context in which it is offered, to determine whether the value of the evidence outweighs its potential for prejudice (see, People v. Acevedo, supra, at 704). Here, the demonstration in the presence of the jury of how the stun gun operated was appropriate since the probative value of the evidence exceeded the prejudice to the defendant.
The defendant's remaining contentions are without merit.
S. MILLER, J.P., H. MILLER, SCHMIDT and COZIER, JJ., concur.