
286 S.E.2d 527 (1982)
In the Matter of: Mario Lopez STEDMAN.
No. 35.
Supreme Court of North Carolina.
January 27, 1982.
*530 Rufus L. Edmisten, Atty. Gen. by Donald W. Stephens, Asst. Atty. Gen., Raleigh, for the State, petitioner-appellant.
Donnell S. Kelly, Graham, for Mario Lopez Stedman, respondent-appellee.
HUSKINS, Justice:
On 3 December 1978 when the offenses described in the four juvenile petitions were committed, Mario Lopez Stedman was fifteen years, nine months and seventeen days old, and Article 23 of Chapter 7A of the General Statutes (G.S. 7A-277 through 7A-289), as contained in Volume 1B (replacement 1969) was in effect.
Effective 1 January 1980, Article 23 of Chapter 7A of the General Statutes (G.S. 7A-277 through 7A-289) was repealed by 1979 Session Laws, Chapter 815, section 1, and the North Carolina Juvenile Code, which includes Articles 41 through 57 of Chapter 7A of the General Statutes (Volume 1B, replacement 1981), was enacted in lieu thereof.
Former G.S. 7A-279 reads in pertinent part as follows:
The court shall have exclusive, original jurisdiction over any case involving a child ... who is alleged to be delinquent,... except as otherwise provided. This jurisdiction shall be exercised solely by the district judge.
Former G.S. 7A-280 reads in pertinent part as follows:

Felony cases.If a child who has reached his fourteenth birthday is alleged to have committed an offense which constitutes a felony, the judge shall conduct a preliminary hearing to determine probable cause after notice to the parties as provided by this article. Such hearing shall provide due process of law and fair treatment to the child, including the right to counsel, privately retained or at State expense if indigent.

*531 If the judge finds probable cause, he may proceed to hear the case under the procedures established by this article, or if the judge finds that the needs of the child or the best interest of the State will be served, the judge may transfer the case to the superior court division for trial as in the case of adults. The child's attorney shall have a right to examine any court or probation records considered by the court in exercising its discretion to transfer the case, and the order of transfer shall specify the reasons for transfer.
If the alleged felony constitutes a capital offense and the judge finds probable cause, the judge shall transfer the case to the superior court division for trial as in the case of adults.
Likewise, the new Juvenile Code gives the district court exclusive original jurisdiction over any case involving a juvenile alleged to be delinquent. For purposes of determining jurisdiction, the age of the juvenile at the time of the alleged offense governs. G.S. 7A-523. Once the district court obtains jurisdiction over a juvenile, that jurisdiction continues until terminated by order of the court or until the juvenile reaches his eighteenth birthday. G.S. 7A-524.
Thus, under both the old law and the new, it is clear that on 3 December 1978 the district court had exclusive original jurisdiction over the cases involving Mario Lopez Stedman. Since the cases had not been transferred to the superior court for trial as in case of adults, the bills of indictment returned by the Alamance Grand Jury on 6 August 1979 were void for lack of jurisdiction; and Judge Donald L. Smith, presiding over Alamance Superior Court, properly quashed the bills of indictment on 30 October 1979.
We note at this point that G.S. 15A-502, as written and in effect on 3 December 1978, read in pertinent part as follows:
(a) A person charged with the commission of a felony or a misdemeanor may be photographed and his fingerprints may be taken for law-enforcement records only when he has been:
(1) Arrested or committed to a detention facility, or
(2) Committed to imprisonment upon conviction of a crime, or
(3) Convicted of a felony.
(b) This section does not authorize the taking of photographs or fingerprints when the offense charged is a misdemeanor under Chapter 20 of the General Statutes, `Motor Vehicles,' for which the penalty authorized does not exceed a fine of five hundred dollars ($500.00), imprisonment for six months, or both.
(c) This section does not authorize the taking of photographs or fingerprints of a `child' as defined for the purposes of G.S. 7A-278(2), unless the case has been transferred to the superior court division pursuant to G.S. 7A-280. [Emphasis added.]
(d) This section does not prevent the taking of photographs, moving pictures, video or sound recordings, fingerprints, or the like to show a condition of intoxication or for other evidentiary use.
(e) Fingerprints or photographs taken pursuant to subsection (a) may be forwarded to the State Bureau of Investigation, the Federal Bureau of Investigation, or other law-enforcement agencies.
Effective 8 June 1979 the General Assembly amended G.S. 15A-502(c) above quoted to read as follows: "This section does not authorize the taking of photographs or fingerprints of a juvenile except under G.S. 7A-596 through 7A-627." See Chapter 850 of the 1979 Session Laws.
G.S. 7A-596 provides in pertinent part:
Nontestimonial identification procedures shall not be conducted on any juvenile without a court order issued pursuant to this Article unless the juvenile has been transferred to superior court for trial as an adult in which case procedures applicable to adults as set out in Articles 14 and 23 of Chapter 15A shall apply. A nontestimonial identification order authorized by this Article may be issued by any judge of the district court or of the superior court upon request of a prosecutor. *532 As used in this Article, `nontestimonial identification' means identification by fingerprints, palm prints, footprints, measurements, blood specimens, urine specimens, saliva samples, hair samples, or other reasonable physical examination, handwriting exemplars, voice samples, photographs, and lineups or similar identification procedures requiring the presence of a juvenile.
A request for such nontestimonial identification order may be made before or after a juvenile is taken into custody and prior to the adjudicatory hearing. G.S. 7A-597.
A nontestimonial identification order may issue only upon sworn affidavit or affidavits establishing the following grounds: (1) that there is probable cause to believe that an offense has been committed which if committed by an adult would be punishable by imprisonment for more than two years; and (2) that there are reasonable grounds to suspect that the juvenile named or described in the affidavit committed the offense; and (3) that the results of specific nontestimonial identification procedures will be of material aid in determining whether the juvenile named in the affidavit committed the offense. G.S. 7A-598. When it is shown that the specified grounds exist the judge may issue the order following the same procedure as in case of adults. G.S. 7A-599. After a notice and hearing, if the court finds probable cause, it may transfer jurisdiction over a juvenile fourteen years of age or older to superior court if the juvenile was fourteen years of age or older at the time he allegedly committed an offense which would be a felony if committed by an adult. G.S. 7A-608.
We note parenthetically that a juvenile may request that nontestimonial identification procedures be conducted upon himself. If it appears that the results of such procedures will be of material aid to the juvenile's defense, the judge to whom the request is directed must order the State to conduct the identification procedures. See G.S. 7A-600.
It now becomes our duty to apply the foregoing legal principles to the facts in the case before us.
G.S. 15A-502(c) as amended by Chapter 850 of the 1979 Session Laws, effective 8 June 1979, permits the taking of fingerprints of a juvenile under G.S. 7A-596 through 7A-627. The procedure for fingerprinting a juvenile is thereby changed. Such fingerprinting is specifically authorized before the case is transferred to the superior court when a district or superior court judge issues a nontestimonial identification order upon sworn affidavits which establish the three grounds enumerated in G.S. 7A-598.
We hold that the requisites of G.S. 7A-598 were satisfied as a result of the affidavit of SBI Agent Pennica establishing the following:
1. On 3 December 1978 between 9 and 10 p. m., two black males entered the office of the Village Inn Motel, robbed Karen Farris at gunpoint, abducted her, took her fourteen and one-half miles north of Graham off Highway 62, raped her, shot her four times with a .25 caliber pistol, and left her for dead.
2. The two black males were driving a 1963 light blue Plymouth which the victim had positively identified as the automobile in which she was raped.
3. Miss Farris had described both black males and Mario Lopez Stedman fit the description of one of them.
4. Kelvin Wendell Sellars was positively identified as one of the black males who committed the offenses upon her.
5. Kelvin Wendell Sellars had testified under oath at his own trial that at 7:15 p. m. on the night of 3 December 1978 he allowed Mario Stedman and another black male to use the 1963 light blue Plymouth. Stedman returned the vehicle late in the evening of 3 December 1978, was in possession of it and had exclusive custody and control over it during the time the crimes were allegedly committed.
*533 6. During the Sellars trial a witness named John Wiley had testified that he was present when Sellars allowed Mario Lopez Stedman and another black male to use the 1963 blue Plymouth. The vehicle was taken by Stedman around 7 p. m. and returned while Wiley was in the presence of Sellars that same evening about 10 p. m.
7. The affiant had been told by a girl named Debra Arnette Gwyn that she had taken Mario and DeCarlo Stedman to the bus station in Danville, Virginia to get a bus to New Jersey on 11 December 1978, the day after Sellars had been arrested. Miss Gwyn stated she heard Mario tell DeCarlo they needed money to get away and that she herself gave them $76. Miss Gwyn had further stated that she saw Mario with a small handgun at his residence on 11 December 1978 at which time Mario stated that "if the law came to his house he was going to shoot them."
8. The affiant had heard Karen Farris state under oath during a hearing in juvenile court that Mario Stedman resembled one of the men who attacked her on the night of 3 December 1978, but she was not positively sure that Stedman was one of the men; she was positive about the other man.
9. During the investigation of these offenses, officers took latent fingerprint impressions from the 1963 blue Plymouth and from the metal cash box located under the counter near the cash register at the Village Inn Motel where it is likely the perpetrators of these crimes left fingerprint impressions.
The affidavit before Judge McLelland was clearly sufficient to establish probable cause to believe that the offenses described in the juvenile petitions had been committed and would be punishable by imprisonment for more than two years if committed by an adult; that there were reasonable grounds to suspect that Mario Lopez Stedman committed them; and that taking Stedman's fingerprints would be of material aid in determining whether Stedman committed the offenses described. The three requisites specified in G.S. 7A-598 were thus satisfied.
As a matter of law, upon the establishment of the grounds enumerated in G.S. 7A-598, the nontestimonial identification order issued by Judge Cooper on 26 February 1980 pursuant to G.S. 15A-502(c) and G.S. 7A-596 was in all respects valid. Likewise, the nontestimonial identification order issued by Judge McLelland on 9 February 1981 was in all respects lawful. Therefore, the fingerprints of Mario Lopez Stedman taken pursuant to the latter order were legally obtained. Evidence of the fingerprints of Stedman taken on 12 February 1981 and the comparison of these prints with the latent fingerprints taken from the metal box at the crime scene and from the 1963 Plymouth automobile was competent and should have been considered at the 16 February 1981 hearing.
Judge Allen suppressed such evidence on the ground that, since Stedman's fingerprints had been unlawfully obtained initially, these lawfully obtained fingerprints were tainted under the "fruit of the poisonous tree" doctrine enunciated in Wong Sun v. United States, 371 U.S. 471, 83 S.Ct. 407, 9 L.Ed.2d 441 (1963). That doctrine, firmly rooted in the principle of the "exclusionary rule" prohibiting admission of evidence obtained by unlawful or improper activity by the government, forbids the use of any evidence whose genesis can be traced directly or indirectly to an original invalid search or other illegal action by authorities. Silverthorne Lumber Co. v. United States, 251 U.S. 385, 40 S.Ct. 182, 64 L.Ed. 319 (1920). Not only the evidence initially wrongfully obtained, but its fruitsevidence resulting from the original wrongdoingmust be suppressed. Alderman v. United States, 394 U.S. 165, 89 S.Ct. 961, 22 L.Ed.2d 176 (1969).
A prominent exception to the "fruit of the poisonous tree" doctrine is the "independent discovery" rule. If the evidence would likely have been discovered or obtained by valid means independent of the wrongdoing, the evidence is not inadmissible, even though under the particular circumstances it first came to authorities' attention *534 as a result of some wrongful governmental activity. Nardone v. United States, 308 U.S. 338, 60 S.Ct. 266, 84 L.Ed. 307 (1939).
Stedman's fingerprints were taken pursuant to an order based on information obtained independently of, and not tainted by, the fact that Stedman was unlawfully fingerprinted on or about 14 September 1979 following his arrest under invalid bills of indictment. See United States v. Crews, 445 U.S. 463, 474-77, 100 S.Ct. 1244, 1251-53, 63 L.Ed.2d 537, 548-49 (1980). The order was issued solely upon SBI Agent Pennica's affidavit which did not mention any previous fingerprinting of Stedman. The record does not indicate whether these earlier fingerprints were ever compared with the latent prints taken from the grey metal box and the 1963 Plymouth. Assuming, arguendo, that the prints matched and this evidence played a role in the State's determination to seek the nontestimonial identification order, the motivations of the prosecution are not germane to our inquiry. The question before us is whether the evidence the State presented to Judge McLelland satisfied the requisites of G.S. 7A-598; speculation regarding the factors which prompted the State to seek the nontestimonial identification order is irrelevant. Judge Allen erred in suppressing the evidence as "fruit of the poisonous tree."
The fact that the fingerprints could not legally have been taken at the time of the offense does not preclude their admission in this case. The amendment of G.S. 15A-502(c) to allow fingerprinting of juveniles pursuant to G.S. 7A-596 constitutes a narrowing of an exclusionary rule of evidence. The fact that G.S. 15A-502(c) was amended and G.S. 7A-596 was enacted after the alleged commission of the offenses set out in the juvenile petitions is of no consequence.
G.S. 15A-502(c) and G.S. 7A-596 are procedural statutes. A change in the evidentiary or procedural law between the time of the offense and the time of trial does not preclude the State from utilizing the new procedure even though at the time of the offense it was unavailable. See Dobbert v. Florida, 432 U.S. 282, 97 S.Ct. 2290, 53 L.Ed.2d 344 (1977); Beazell v. Ohio, 269 U.S. 167, 46 S.Ct. 68, 70 L.Ed. 216 (1925); Thompson v. Missouri, 171 U.S. 380, 18 S.Ct. 922, 43 L.Ed. 204 (1898); Hopt v. Utah, 110 U.S. 574, 4 S.Ct. 202, 28 L.Ed. 262 (1884).
In Beazell the Court said:
[T]here may be procedural changes which operate to deny to the accused a defense available under the laws in force at the time of the commission of his offense, or which otherwise affect him in such a harsh and arbitrary manner as to fall within the constitutional prohibition [against ex post facto laws] .... [S]tatutory changes in the mode of trial or the rules of evidence, which do not deprive the accused of a defense and which operate only in a limited and unsubstantial manner to his disadvantage, are not prohibited.
269 U.S. at 170, 46 S.Ct. at 69, 70 L.Ed. at 218.
Applying these legal principles, we discern no unconstitutional ex post facto ramifications here. G.S. 7A-596, authorizing the fingerprinting of minors on a nontestimonial identification order, does not deprive Mario Lopez Stedman of any defense which was available to him under the laws in force on 3 December 1978. Furthermore, G.S. 7A-596 does not create an offense ex post facto by altering any element of the crimes charged or the quantum of proof required for a conviction. Therefore, application of the provisions of G.S. 7A-596 and 7A-598 does not offend Article I, section 16 of the North Carolina Constitution which forbids the enactment of any ex post facto law or a like prohibition found in Article I, section 10 of the United States Constitution.
For the reasons stated Judge Allen's order dated 16 February 1981 (and apparently signed by him on 25 February 1981) is vacated.
Moreover, Judge Allen's order must be vacated for the additional reason that the District Court of Alamance had no jurisdiction over Stedman at the time of the 16 *535 February 1981 hearing. G.S. 7A-524 provides: "When the court obtains jurisdiction over a juvenile, jurisdiction shall continue until terminated by order of the court or until he reaches his eighteenth birthday." Stedman reached his eighteenth birthday at 12:01 a. m. on 16 February 1981. The quoted statute terminated the jurisdiction of the juvenile court over the juvenile and the subject matter of the juvenile petitions at that time.
Ordinarily this matter would be remanded to the District Court of Alamance for further proceedings in accordance with this opinion. However, since that court is now functus officio for lack of jurisdiction, Stedman may now be tried in Superior Court of Alamance the same as any other adult. No adjudicatory or dispositional hearing has been conducted in juvenile court. The district court has never decided whether Stedman was guilty of the offenses alleged in the petitions. In fact, the juvenile court has conducted a probable cause hearing only, and a probable cause hearing does not suffice to place the juvenile in jeopardy. It may not be equated with an adjudicatory hearing where jeopardy attaches when the judge begins to hear evidence. G.S. 7A-612; In re Bullard, 22 N.C.App. 245, 206 S.E.2d 305, appeal dismissed, 285 N.C. 758, 209 S.E.2d 279 (1974). Compare State v. Neas, 278 N.C. 506, 180 S.E.2d 12 (1971).
Order vacated.
Remanded for trial as in case of adults.
EXUM and CARLTON, JJ., concur in part and dissent in part. They vote to remand to District Court of Alamance County for further proceedings in accordance with the opinion.
