These appeals challenging two guilty pleas and sentences thereon arise, like many others,1 from omissions by trial judges to advise a defendant at a hearing on a plea of guilty of special provi*591sions of the federal narcotics laws relating to sentencing, the old law’s parole ineligibility provision in one case and the new law’s requirement of a mandatory parole term in the other. In each case the District Court held the plea valid under all the circumstances, notwithstanding the omission. We affirm these judgments.
Before May 1, 1971, federal narcotics offenders were subject to mandatory minimum sentences and were ineligible, under former 26 U.S.C. § 7237(d), for probation or parole. Effective that date, the Comprehensive Drug Abuse Prevention and Control Act of 1970, 84 Stat. 1236, replaced the old law and repealed section 7237(d). Under the new act there was no mandatory minimum period of imprisonment and no prohibition against probation or parole. The new act did, however, require that a sentence provide for a minimum special parole term of at least three years. 21 U.S.C. § 841. One of the two convictions Bachner challenges on this appeal was for an offense under the old law, and the other was for an offense under the new law.
I.
The decisions on failure to advise of parole eligibility as a ground for relief under 28 U.S.C. § 2255 and the effect of Davis v. United States, 417 U.S. 333, 94 S.Ct. 2298, 41 L.Ed.2d 109 (1974) were reviewed by Judge Hastings in his opinion for this court in Gates v. United States, 515 F.2d 73 (7th Cir. 1975). As he pointed out, until the Supreme Court decided Davis the scope of review under section 2255 was uncertain. There was no doubt that relief could be granted for jurisdictional and constitutional errors, but, as the opinion of Mr. Justice Stewart for the majority and the dissenting opinion of Mr. Justice Rehnquist in Davis illustrate, there was disagreement about whether the remedy reached errors of law only and if so what kinds. Davis held that a nonconstitutional error of law could be raised under section 2255. but only if it is “a fundamental defect which inherently results in a complete miscarriage of justice”2 and “present[s] exceptional circumstances where the need for the remedy afforded by the writ of habeas corpus is apparent.”3 417 U.S. at 346, 94 S.Ct. at 2305.
Before Davis, a majority of the circuits, including ours (United States v. Smith, 440 F.2d 521 (7th Cir. 1971)), granted section 2255 relief to petitioners who were not informed of their ineligibility for parole when they pleaded guilty. Gates v. United States, supra, 515 F.2d at 79, n. 7. These cases, while viewing the error as affecting the defendant’s understanding of the consequences of the plea and hence voluntariness, generally relied on Rule 11, as pointed out in Gates, and did not reach *592the constitutional question.4 This rule has been extended by two courts to failure to advise of a mandatory special parole term (United States v. Richardson, 483 F.2d 516 (8th Cir. 1973); Roberts v. United States, 491 F.2d 1236 (3rd Cir. 1974)), and by one to advice of a greater maximum sentence than the statute actually provides (Kelsey v. United States, 484 F.2d 1198 (3rd Cir. 1973)).5 The Fifth Circuit, however, held it unnecessary to advise of parole ineligibility (Trujillo v. United States, 377 F.2d 266 (5th Cir. 1967), cert. denied, 389 U.S. 899, 88 S.Ct. 224, 19 L.Ed.2d 221 (1967)), and in cases in which the defendant was misinformed as to the maximum penalty refused to apply an automatic rule and held that a case-by-case analysis should be made to determine whether the defendant would have entered a different plea if the actual penalty was known. United States v. Woodall, 438 F.2d 1317, 1329 (5th Cir. 1971) (in banc), cert. denied, 403 U.S. 933, 91 S.Ct. 2262, 29 L.Ed.2d 712 (1971); see United States v. Blair, 470 F.2d 331, 340 n. 20 (5th Cir. 1972), cert. denied, 411 U.S. 908, 93 S.Ct. 1536, 36 L.Ed.2d 197 (1973). The latter rule was followed by the District Court in this case.
In Gates the court noted that the decisions of the various Courts of Appeals granting relief under section 2255 for failure to advise of parole ineligibility were decided before Davis and, after explaining the Davis test, applied that test to the case before it. Thus the court did not merely hold, on the authority of Smith (supra, 440 F.2d 521), that failure to advise of parole ineligibility without more automatically entitled the petitioners to relief. Instead it examined the circumstances surrounding the plea and sentence, noting that the petitioners not only had been insufficiently advised before pleading but had been told at the time they were sentenced that they would be eligible for parole, and concluded as follows:
“We hold that a § 2255 petitioner is entitled to relief where a court not only fails to inform him prior to his plea of his ineligibility for parole, but also incorrectly informs him at the time of sentencing that he will be eligible. These compound errors present ‘exceptional circumstances where the need for the remedy afforded by the writ of habeas corpus is apparent.’ Davis v. United States, supra, 417 U.S. at 436, 94 S.Ct. at 2305.” Gates, supra, 515 F.2d at 80
The Gates opinion also maintained the principle, enunciated in Smith (supra, 440 F.2d at 526-527), that the quality and magnitude of the error are to be assessed as of the time of the plea and sentence, and not in the light of later events, thus rejecting the government’s argument that the petitioners were not harmed by the inaccurate advice because they were sentenced to lesser penalties than the maximum of which the judge advised them. Gates, supra, 515 F.2d at 80.
Gates accordingly demonstrates that the correct application of the Davis standard to complaints relating to the defendant’s understanding of the consequences of his plea requires an examination of the circumstances at the time of the plea and also at the sentencing hearing, when, as stated in United States v. Brown, 499 F.2d 829, 835 (7th Cir. 1974), cert. denied, 419 U.S. 1047, 95 S.Ct. 619, 42 L.Ed.2d 640 (1974), a motion to withdraw the plea could still have been made. From this examination the court must determine whether the error was of sufficient magnitude to amount to “a fundamental defect which inherently results in a complete miscarriage of jus*593tice” and “present[s] exceptional circumstances where the need for the remedy afforded by the writ of habeas corpus is apparent.” Davis, supra, 417 U.S. at 346, 94 S.Ct. at 2305. If we determine that it was not, we may then prove our answer by looking at what happened afterward to be sure the defendant did not suffer any prejudice.6
II.
Frank Bachner, is the appellant in each of the three appeals before us. In Number 74 — 1210 he appeals from a judgment denying relief under 28 U.S.C. § 2255 from a conviction upon a plea of guilty to a three-count indictment charging transportation of a quantity of marijuana in violation of former 21 U.S.C. § 176a. Sentences for violation of that statute were subject to former 26 U.S.C. § 7237(d), which prohibited probation or parole for the offender. Bachner entered his plea of guilty on December 3, 1971 and was sentenced on January 4, 1972 to a ten-year term on each count, the terms to run concurrently. He' was also fined $10,000 and assessed the costs of prosecution. He appealed, arguing that he should have been sentenced under the new act. This court affirmed by unpublished order on March 14, 1973.
Bachner contends in this proceeding that at the sentencing hearing the judge failed both to advise him of the nature of the charges and to determine that there was a factual basis for the plea, and also failed to advise him of the consequences of his plea by omitting to mention ineligibility for probation or parole and liability for costs, all in violation of Rule 11 and his constitutional rights.
The contentions as to failure to advise of the nature of the charges and to determine that there was a factual basis for the plea are wholly without merit. At the plea hearing the judge summarized the charges contained in the indictment and asked Bachner whether he understood those charges. Bachner answered that he did. The judge then asked, “Did you do the things that you are charged with doing in these three counts?” Bachner answered, “Yes, your Honor.” At the sentencing hearing Bachner volunteered, “I am guilty of this. I realize what the danger was, to be very honest.” While the explanation of the charges and the establishment of the factual basis for the plea might have been more detailed, the record is adequate, especially in view of the presence of competent retained counsel, to establish that Bachner comprehended the nature of the charges and made an understanding acknowledgment of their truth. Cf. Arias v. United States, 484 F.2d 577, 579—580 (7th Cir. 1973), cert. denied, 418 U.S. 905, 94 S.Ct. 3195, 41 L.Ed.2d 1153 (1974).
The contentions relating to adequacy of the advice about the consequences of the plea require more discussion. At the plea hearing the judge said he did not have the statute before him on the bench and asked the prosecutor to state the penalties called for by the statute. After the prosecutor had responded, the judge summarized the penalties as follows:
“Mr. Bachner, I must tell you that if your motion is allowed here and you come to be convicted, the court has the power to impose a maximum sentence — maximum means the most that the court could impose — of twenty years, a maximum fine of $10,000, or both, but the court would be obligated *594in the event of your conviction to impose a minimum mandatory sentence of five years on each of these counts. Putting it very bruskly and succinctly and clearly, the court would be obligated to impose a minimum sentence in the aggregate against you of fifteen years. It could impose a maximum sentence of sixty years in the aggregate on all three counts. It could impose a maximum fine of $10,-000 on each count which would mean $30,000 in the aggregate or the maximum punishment could be imposed both as to prison terms and fines. You understand that?
“Defendant Frank Bachner: Yes, I do, your Honor.”
The judge did not state that Bachner would be ineligible for parole. He did, however, before the hearing was concluded, say that Bachner would be ineligible for probation, although Bachner’s attorney argued to the contrary and urged that the defendant could be sentenced under the new act and probation could be granted under a decision of the Ninth Circuit, which he did not further identify.7
At the hearing on sentencing, the court again asked the prosecutor “the minimum-maximum sentence,” and the prosecutor answered as follows:
“Your Honor, the sentence is a minimum of five years and a maximum of twenty years and a fine of, I believe, $20,000.8
“Additionally, your Honor, I neglected to mention this is an offense which allows by statute for no probation and no parole.”
Bachner’s counsel then said he didn’t think that was correct, that he thought the no-parole provision had been repealed four or five years earlier, and the court said that would be a matter for the parole board to consider. Counsel for Bachner was of course wrong on this point, and the prosecutor was right. The court then imposed sentence.
While the reason assigned by Bachner’s attorney for his belief that Bachner was eligible for parole was erroneous, and the prosecutor correctly described the statutory penalties, the eligibility of prisoners in Baehner’s position was indeed uncertain (compare United States v. McGarr, 461 F.2d 1 (7th Cir. 1972), with Bradley v. United States, 410 U.S. 605, 611, 93 S.Ct. 1151, 35 L.Ed.2d 528 n. 6 (1973)) and remained so until the Supreme Court’s decision in Warden v. Marrero, 417 U.S. 653, 94 S.Ct. 2532, 41 L.Ed.2d 383 (1974). In that case the Court held that prisoners sentenced for violations occurring before the old act was repealed were ineligible for parole. Congress, by an amendment to the Controlled Substances Act, effective October 26, 1974, made those prisoners eligible for parole, 88 Stat. 1455. Judge Hastings related this history in more detail in Gates (supra, 515 F.2d at 77 — 78), and concluded that the effect of the 1974 amendment was not to change the meaning of the applicable statutes as interpreted in Warden v. Marrero but to create eligibility for parole under 18 U.S.C. § 4202 commencing October 26, 1974.
Applying the test stated in Part I, above, we conclude that Bachner is not entitled to relief. To begin with, what was initially his principal contention, viz., that he was not advised of his ineligibility for probation, is without foundation in the record. The sentencing judge expressed his belief that Bachner was ineligible for probation, from which it was plain that in any event probation would not be given. Bachner was unequivocally advised of probation ineligibility at the sentencing hearing and made no complaint about not receiving probation then or in his first appeal.
Parole ineligibility was not expressly mentioned at the plea hearing, *595but the judge did emphasize the minimum mandatory sentences;9 and at the sentencing hearing Bachner was expressly advised, through the judge’s calling on the prosecutor to state the statutory penalties, of the no-parole, no-probation provisions of the statute. It is true that Bachner’s retained counsel questioned the accuracy of the advice given, and that as a result the discussion ended on an uncertain note. But at worst, Bachner knew that his ineligibility for parole was uncertain. He was not misled. At the time of sentencing uncertainty prevailed in the minds of judges and lawyers as to whether the 1970 Act, which was already in effect, had made the no-parole and no-probation restrictions of the old act inapplicable to prisoners being sentenced for violations of that act, an uncertainty that was not resolved until 1974, when the Supreme Court decided Marrero and Congress reacted with the ameliorative 1974 amendment. All that could accurately have been stated to Bachner on the subject of parole at the time of plea and sentencing was that it was uncertain whether he would be eligible for parole, and that he certainly understood. As it turned out, Bachner, would have been correct if he had understood that he would be eligible for parole at the normal time provided in 18 U.S.C. § 4202, for, allowing for all possible good time, he had not reached the one-third point in his sentence before the amendment of October 26, 1974 made him eligible for parole. Under these circumstances, it can hardly be said that Baehner’s section 2255 petition shows “a fundamental defect which inherently results in a complete miscarriage of justice” and presented “exceptional circumstances where the need for the remedy afforded by the writ of habeas corpus is apparent.” Davis v. United States, supra, 417 U.S. at 346, 94 S.Ct. at 2305.
Bachner also contends that Rule 11 was violated because he was not advised that he might be assessed the costs of prosecution under 28 U.S.C. § 1918(b). That omission, even assuming that it was error, cannot be the basis for relief under section 2255. Advice as to liability for costs of prosecution is customarily not given by district judges in receiving pleas of guilty,10 perhaps because, when the defendant pleads guilty, the costs involved are nominal and are normally not assessed in any event.
Assuming, however, without deciding, that there was a technical violation of Rule 11, it is not conceivable that Bachner’s determination to plead guilty to a serious narcotics violation carrying heavy penalties, and to persist in that plea after having entered a guilty plea to another serious narcotics violation in a case before another judge, would have been affected by the knowledge that he would be liable for the costs of prosecution, which in view of the guilty plea were surely nominal. The triviality of the costs is made more apparent by the fact that the maximum fine was $60,000, as he was advised, and he was actually fined $10,000. Finally, Bachner could have raised this point immediately after sentencing or on his direct appeal, when the omission could have been corrected by remitting the costs. He cannot set aside his plea on this ground in a section 2255 proceeding.
*596III.
In Numbers 74 — 1651 and 74 — 1732, Bachner challenges another judgment of conviction entered on a plea of guilty before another judge, this time contending he was not advised of the requirement .in the new narcotics act of a mandatory special parole term. This plea was entered shortly before the one just discussed, and the sentences were imposed the same day. Bachner attacks this judgment by alternate routes, one an appeal from an order resentencing him and the other an appeal from the denial of his petition under 28 U.S.C. § 2255 challenging the original judgment of guilty and sentence.
Bachner pleaded guilty on November 21, 1971 to a one-count indictment charging distribution of cocaine in violation of section 401(a)(1) of the Comprehensive Drug Abuse Prevention and Control Act of 1970, effective May 1, 1971, 84 Stat. 1236, 21 U.S.C. § 841(a)(1). Section 401(b)(1)(A) requires that a sentence imposing a term of imprisonment “shall, in the absence of . . .a prior [federal narcotics] conviction, impose a special parole term of at least 3 years in addition to such term of imprisonment.” At the plea hearing the court did not advise Bachner of this mandatory three-year special parole term.
On January 4, 1972, the court sentenced him to a term of imprisonment of ten years to run concurrently with the other ten-year sentence imposed earlier that day. The sentencing order did not include the three-year parole term required by the statute.
Bachner commenced serving his sentence and did not seek to have his plea or the sentence vacated until 1974, when he filed a petition under 28 U.S.C. §§ 2243 and 2255 based upon the court’s failure to mention the mandatory parole term at the time of his plea and the omission of the special parole term from the sentence itself. In ruling on the petition, the District Court applied the standard stated in United States v. Blair, supra, 470 F.2d at 340 n. 20, which, as paraphrased by the District Court, calls for a determination, “based upon all of the attendant circumstances,” of whether the petitioner would “have entered a different plea if the actual penalty was known.” Bachner v. United States, 380 F.Supp. 193, 194 (N.D.Ill.1974). The court concluded that “even if equipped with the knowledge of the special parole term,” Bachner “would not have pled any differently.” (Id. at 196.) In so holding the court rejected the “automatic rule which compels the vacation of a plea whenever the maximum sentence is not disclosed by the court.” (Id. at 194.) While refusing to vacate the guilty plea, the court held that the sentence was technically incorrect because it omitted to provide for the mandatory parole term and therefore vacated the sentence and ordered Bachner brought before the court for resentencing. (Id. at 196.)
Subsequently Bachner appeared before the court and was resentenced to a term of imprisonment of seven years, plus a three-year special parole term, rather than the original ten years of imprisonment, still to run concurrently with the sentence in the other case. Bachner appeals from the court’s order resentencing him and from the other ruling on the collateral review petition.
Although Bachner’s appeal in No. 74 — 1651 is technically a direct appeal from the resentencing order, we think it should be judged, insofar as it seeks review of the refusal to vacate the guilty plea, by the same standards as the appeal from the section 2255 petition. Bachner did not choose to appeal directly from the original judgment, but instead challenged the plea collaterally after a lapse of time that would make prosecution more difficult in the event of retrial. His challenge to the plea remains a collateral attack in substance even though the judgment was reopened for resentencing because of the technical defect of the failure to spell out the mandatory parole term in the judgment order. That error did not affect the validity of the plea or the judgment of guilty thereon and could be corrected by resen*597tencing. Thompson v. United States, 495 F.2d 1304 (1st Cir. 1974); Caille v. United States, 487 F.2d 614 (5th Cir. 1973); United States v. Mack, 494 F.2d 1204 (9th Cir. 1974). The only substantive change in the resentencing order was the reduction of Bachner’s sentence by three years, which should hardly entitle him to reopen his plea. Accordingly, the standard by which we determine Bachner’s right to relief is that applicable under section 2255.
Failure to advise a defendant of the mandatory parole term does not inherently result in a complete miscarriage of justice. Unlike ineligibility for parole, which “automatically trebles the mandatory period of incarceration which an accused would receive under normal circumstances,” United States v. Smith, supra, 440 F.2d at 525 (emphasis in original), the mandatory parole term has no effect on that period of incarceration and does not ever become material unless the defendant violates the conditions of his parole. It would be as unrealistic, we think, to assume that he would expect to do so and be influenced by that expectation at the time he is considering whether to plead guilty, as it would be to assume that he would be influenced by other contingencies he is not advised about. For example, if he is released early by reason of earned good time, he will be deemed to be on parole until the end of the term of his sentence and hence will be subject to being reincarcerated if he violates parole conditions. 18 U.S.C. §§ 4161-4164. Good time he has earned while he is a prisoner may be forfeited if he commits an offense or violates a rule of the institution. 18 U.S.C. § 4165. Also, the date the defendant will be eligible for parole will depend on whether the judge leaves it to be governed by 18 U.S.C. § 4202; specifies an eligibility date before the expiration of one-third of the sentence, as permitted by 18 U.S.C. § 4208(a)(1); or specifies that the prisoner shall be eligible at such time as the board of parole may determine, as permitted by 18 U.S.C. § 4208(a)(2). These contingencies are too remote from the considerations that may reasonably be expected to motivate a defendant’s plea decision to be of legal significance. We recognize that our conclusion is inconsistent with decisions of the Third and Eighth Circuits, Roberts v. United States, supra, 491 F.2d 1236 and United States v. Richardson, supra, 483 F.2d 516, but both these cases were decided before Davis clarified the standards for granting relief under section 2255.
Bachner has not been prejudiced by the court’s omission to advise him of the mandatory parole term. He was told that he could receive as much as fifteen years, and he could not have complained if the court had given him that long a sentence. Instead he initially received (concurrent with his other ten-year sentence) a ten-year sentence, to which the statute required the addition of a parole term, and ultimately received a seven-year sentence with the three-year parole term added. The sentence he received was substantially below the maximum he had been told he could receive.
Bachner argues that under the statute he might have received either a sentence of fifteen years imprisonment plus a parole term, or a parole term far in excess of the mandatory minimum of three years, with the result that the total of the term of his sentence and the term of his parole might have far exceeded the fifteen years he was advised was the maximum sentence he could receive. The remote and theoretical possibility that a complete miscarriage of justice might have occurred is not enough to satisfy the Davis test, when in fact no injustice has been done.
Affirmed.