OPINION
Before BONEY, C. J., and RABINO-WITZ, CONNOR, ERWIN and BOOCH-EVER, JJ. CONNOR, Justice.On January 29, 1970, appellant was indicted on five felony counts. Counts I and II charged sale of tuinal capsules, amphetamine capsules, and amphetamine tablets in violation of AS 17.12.010. Counts III and IV charged sale of phenophen and morphine in violation of AS 17.10.010. Count V of the indictment was dismissed and is not subject to this appeal.
On this appeal three specifications of error are stated: first, that the appellant was denied his right to speedy trial; second, that the indictment was based solely on the hearsay statement of an anonymous informer, the statement being related to the grand jury by a police officer; third, that his sentence was excessive. We will consider these points in the order presented above.
Appellant was indicted on January 29, 1970, he was arraigned on February 2, 1970, and a trial date was set for June 15, 1970. -On May 27, 1970, appellant filed a motion to dismiss his attorney; this unopposed motion was granted on June 4, 1970. On June 11, 1970, four days before trial was to begin, defendant requested a continuance in order to enable him to secure counsel. The continuance was granted and on July 31, 1971, appellant’s case was reset for trial on November 2, 1970. On October 30, 1970, three days before his new trial date, appellant was again before the court and had not, by that date, secured counsel. The court then appointed the public defender to provide counsel for the appellant and the trial was continued to December 14, 1970, the date on which it commenced.
In Glasgow v. State,1 we indicated that, in determining speedy trial claims, we would exclude those periods of time that were attributable to the defendant in our calculation of pre-trial delay. The initial delay of four and one-half months between arrest and the first trial date was not chargeable to appellant. Subsequent delays after appellant dismissed his attorney and continued the case in order to secure other counsel are attributable to the appellant.
The appellant contends that the latter delay is also chargeable to the court because the trial judge obligated himself to remain in contact with the appellant to assure that he obtained replacement counsel. However, the record shows that the appellant was not relying on any representation *241made by the judge in connection with securing counsel.2 Thus, the delay not attributable to the appellant only includes the initial four and one-half months between his arrest on January 29, 1970, and the first trial date of June IS, 1970.
When presented with a case alleging unconstitutional deprivation of speedy trial, we must consider it in terms of its own particular facts and circumstances'. Tarnef v. State, 492 P.2d 109 (Alaska 1971). As in other speedy trial cases we must balance the needs of the accused and the requirements of the judicial process with the purposes served by the speedy trial guarantee.3
As we have indicated in Tarnef v. State4 and in Nickerson v. State,5 a delay for a period substantially less than 14 months will not give rise to a presumption of prejudice. Under the circumstances of the instant case we will not presume prejudice from the length of the delay. We must require that the defendant in this case demonstrate prejudice in order to prevail.
Appellant asserts that he was hindered in the preparation of' his defense by the length of time between arrest on the indictment and trial. However, there is no indication that witnesses necessary for appellant’s defense were unavailable at trial or that the passage of time dimmed their memories. We find that the appellant has
failed to substantiate this assertion of prejudice.
Appellant also claims prejudice due to anxiety over his pending criminal charge. We do not view the delay as such that fundamental unfairness resulted from the subjection of the accused to the prose-cutorial power of the state.
“It would be an exceptional case where such anxiety, standing alone, would constitutionally necessitate dismissal of a criminal prosecution.” 6
It is clear from the record that the defendant was aware of the availability of the services of appointed counsel and of the public defender. He twice chose to have his trial continued in order to learn whether his mother would provide him with counsel from New York. We must conclude that reversal is not mandated by constitutional speedy trial considerations.
We now must turn to the assertion that the indictment resting solely on hearsay evidence of an anonymous informer must be dismissed.
Appellee urges that this court is without jurisdiction to consider this issue because appellant presented this claim in an application for a writ of habeas corpus, the denial of which was appealed to this court.7 We dismissed the appeal by appellant because of failure of appellant to file a brief.
*242At common law the doctrine of res judi-cata was not applicable to habeas corpus.8 Although the question of whether the legislature intended to change the common law by enacting AS 12.75.230 9 might raise serious constitutional questions,10 we need not reach that issue in this case.
The dismissal of a criminal appeal does not necessarily preclude' a second appeal.11 We conclude that the appeal should be allowed in the instant case, as we have never had the opportunity to consider the' merits of appellant’s assertion.
We said in State v. Parks 12 and Burkholder v. State 13 that an indictment is not per se invalid because it is based on hearsay testimony alone. We approve, however, of the American Bar Association Standards for Criminal Justice which limit the use of hearsay testimony before the grand jury as follows:
“A prosecutor should present to the grand jury only evidence which he be-Heves would be admissible at trial. However, in appropriate cases the prosecutor may present witnesses to summarize admissible evidence available to him which he believes he will be able to present at trial.” 14
When secondary evidence is utilized before the grand jury, therefore, it should be scrutinized with special care to ensure that it can “ ‘rationally establish facts’ sufficient to support an indictment.” 15
Our examination of the record of a grand jury proceeding, in which hearsay evidence played a significant part, involves a two-step analysis. The threshold question, which must be determined in all cases involving a challenge to the sufficiency of the evidence supporting a grand jury indictment, is whether the evidence presented a sufficiently detailed account of criminal activity and the defendant’s participation in this activity so that “if unexplained or uncontradicted it would warrant a conviction of the person charged with an offense *243by the judge or jury trying the offense.”16 Where hearsay evidence has been introduced, we must also determine whether the credibility of the informant has been sufficiently established so that the grand jury may know how much weight to give to the hearsay testimony.
In this case we feel that the criminal activity of the defendant was described in sufficient detail. The police officer told the grand jury where each of the sales occurred, the time of the sales, the amount of money that changed hands, and the quantity and type of drug involved in each transaction. The officer also described the relationship between Taggard and the informant and related details of conversations between the defendant and the informant.
The problem in this case, however, is the complete lack of evidence by which the grand jury could evaluate the trustworthiness of the hearsay informant’s testimony. The grand jury was not presented with any evidence which would demonstrate the reliability of the particular informant or independently corroborate his story. The prosecutor’s unsupported assertion before the grand jury that the informant was reliable hardly qualifies as “independent evidence” of trustworthiness. In addition, the statement by the police officer that the informant’s hearsay testimony had been used in a series of narcotics cases before this same grand jury is also inadequate to establish the informant’s trustworthiness. The fact that the same informant’s uncorroborated hearsay testimony has been repeated to the grand jury in a series of earlier cases does not lend credence to his testimony in a particular case.17
We find, therefore, that the hearsay evidence presented to the grand jury in this case lacks sufficient reliability to support the indictment. The indictment is the foundation underlying a criminal prosecution. If the indictment is seriously flawed, the conviction cannot stand.
A mere formal defect does not require dismissal of an indictment after the guilt of the defendant has been established at a fair trial.18 But courts do not hesitate to dismiss an indictment, even after a conviction. when the defect in the indictment is substantial.19 The conviction must be overturned when an indictment is invalid and the error was properly preserved by a timely objection prior to trial.20
In People v. Jackson, 18 N.Y.2d 516, 277 N.Y.S.2d 263, 223 N.E.2d 790 (1966), the New York court was faced with a situation similar to that in the instant case. In its reversal of the conviction, the court observed :
“It is unfortunate that, at this stage of the proceedings, after a conviction has been properly obtained on sufficient evi*244dence, the indictment must be dismissed because of the District Attorney’s failure to present sufficient evidence to the Grand Jury. Nevertheless, the indictment is invalid, and consequently any subsequent proceedings resting thereon are similarly invalid.”
Because the defectiveness of the indictment in the instant case is one of substance, and not mere form, it must be dismissed.
There is no reason why another attempt cannot be made to prosecute this defendant. As Judge Medina stated in his dissent in United States v. Beltram, 388 F.2d 449, 4S3 (2d Cir. 1968):
“This [dismissal of indictment subsequent to conviction] would not let appellants go scot free, as there would be time to reindict them and have their guilt or innocence passed upon again on a record not tainted with irregularity.”
Because we must reverse and remand, it is unnecessary to reach the sentence appeal aspects of this case.
Reversed and remanded.
. 469 P.2d 682, 688 (Alaska 1970).
. “Court: [W]ere you relying on this statement that the court was going to correspond with you every two weeks?
“Mr. Taggard: I was relying on my mother your Honor, not on the court.”
. Tarnef v. State, 492 P.2d 109, 112 (Alaska 1971) ; United States v. Ewell, 383 U.S. 116, 120, 86 S.Ct. 773, 15 L.Ed. 2d 627 (1966) ; Beavers v. Haubert, 198 U.S. 77, 87, 25 S.Ct. 573, 49 L.Ed. 950 (1905) ; Rutherford v. State, 486 P.2d 946, 948 (Alaska 1971) ; Glasgow v. State, 469 P.2d 682, 688 (Alaska 1970) ; Spight v. State, 450 P.2d 157, 158-159 (Alaska 1969).
. 492 P.2d 109, 112-113 (Alaska 1971).
. 492 P.2d 118, 120 (Alaska 1971).
. Id. at 121.
. The writ of habeas corpus is an extraordinary remedy and will not ordinarily be granted when there is another adequate remedy. Spencer v. Cox, 140 F.2d 73, 74 (8th Cir. 1944) ; Application of Jorge, 10 Alaska 633, 640 (1945). A motion to dismiss the indictment under Alaska R. Crim.P. 12(b) (2), therefore, would have been more appropriate in this case. However we take special notice of the fact that Taggard was not represented by counsel at this point in the proceedings. Because of this circumstance the application for a writ of habeas corpus was sufficient to preserve the objection to the defective indictment on appeal.
. Perry v. State, 429 P.2d 249, 251 n. 4 (Alaska 1967).
. AS 12.75.230 provides: “A party to a proceeding by habeas corpus may appeal from the judgment of the court refusing to allow the writ or a final judgment therein in like manner and with like effect as in an action. No question once finally determined upon a proceeding by habeas corpus shall be reexamined upon another or subsequent proceeding of the same kind." (Emphasis added.)
. Perry v. State, 429 P.2d 249, 252 (Alaska 1967).
. See O’Brien v. People, 118 Colo. 58, 192 P.2d 428, 430 (1948) ; State v. Rosser, 162 Or. 293, 86 P.2d 441, 87 P.2d 783, 91 P.2d 295 (1939) ; see also E'vans v. State National Bank of New Orleans, 134 U.S. 330, 10 S:Ct. 493, 33 L.Ed. 917 (1890).
. 437 P.2d 642 (Alaska 1968).
. 491 P.2d 754 (Alaska 1971).
. American Bar Association Standards Relating to the Prosecution Function and the Defense Function § 3.6(a), at 88 (Approved Draft, 1971).
The commentary accompanying this section gives examples of situations where hearsay evidence before the grand jury may be appropriate:
“As a general principle, the use of secondary evidence before a grand jury should be avoided unless there are cogent reasons justifying the presentation of a matter on the basis of such evidence. . . . The need to use
a summary of available evidence may arise in cases involving voluminous records or where an absent witness has given a written statement but is not available at the time and circumstances justify prompt grand jury action. Similarly, where the victim of a criminal act is seriously injured and therefore is unavailable, someone to whom the relevant facts have been related should be permitted to relate to the grand jury what has been told. A third illustrative situation exists where the safety of an important witness reasonably warrants that his identity remain covert and his statements have been recorded and can be presented to the grand jury in sufficient detail to warrant an indictment.” Id. at 89.
.Burkholder v. State, 491 P.2d 754, 758 (Alaska 1971).
. State v. Parks, 437 P.2d 642, 644 (Alaska 1968).
. The informant testified at trial and explained his relationship with the police.
He was an Alaska State Trooper who served at various times as an undercover narcotics agent in Fairbanks. We feel that it would have been sufficient to establish the informant’s credibility if the police officer who testified before the grand jury had described informant’s relationship with the police. Such testimony would not have endangered the informant by revealing his identity.
. E. g., People v. Cox, 20 Ill.2d 458, 170 N.E.2d 531 (1960) ; Estep v. State, 183 Tenn. 325, 192 S.W.2d 706 (1946).
. State v. Bridges, 412 S.W.2d 455 (Mo.1967) ; State v. Sossamon, 259 N.O. 374, 130 S.E.2d 638 (1963) ; People v. Pain, 30 IU.App.2d 270, 173 N.E.2d 825 (1961) (defective information) ; State v. Nolan, 418 S.W.2d 51 (Mo.1967) (defective information) .
.See text accompanying note 7 supra.
Under Alaska R.Crim.P. 12(b) (2) an indictment which fails to show jurisdiction in the court or to charge an offense may be challenged for the first time even after trial. When the defect does not appear on the face of the indictment, however, the objection must be raised prior to trial. A motion to dismiss an indictment for insufficiency of evidence, therefore, may be denied if raised for the first time after entry of judgment. See People v. Nitzberg, 289 N.Y. 523, 47 N.E. 2d 37, 41 (1943).