The state appeals from an amended judgment of conviction and sentence for first-degree manslaughter, arguing that the sentencing court lacked authority to modify the sentence. Alternatively, the state asserts that, even if the court had that authority, the particular modification it made — i.e., entering the amended judgment nunc pro tunc “as, of, and for June 7,1994,” which effectively gave defendant 25 months of credit on his 65-month sentence — was beyond the court’s authority. We conclude that the sentencing court had authority to enter an amended judgment because the original sentencing judgment contained an erroneous term. We hold, however, that the court erred by entering the amended judgment nunc pro tunc as of the 1994 date. Accordingly, we modify the judgment to conform to our decision.
On June 7, 1994, defendant was convicted of attempted murder and was sentenced to 38 months in prison. When that judgment went into effect, the victim was lingering in a coma. The victim later died, and the state charged defendant with intentional murder. On July 23, 1996, the trial court convicted defendant on the lesser-included offense of first-degree manslaughter and imposed a presumptive sentence of 65 months’ imprisonment. As a result, defendant had two convictions and sentences relating to the same event: (1) a 1994 conviction for attempted murder, with a 38-month sentence; and (2) a 1996 conviction for first-degree manslaughter, with a 65-month sentence. The 1996 judgment of conviction for first-degree manslaughter provided for the 65-month sentence to be served “concurrently with” defendant’s 38-month sentence for attempted murder. The 1996 judgment further provided that defendant’s sentence on his 1996 conviction would be credited with time served on the sentence for his 1994 conviction. When the 1996 judgment became effective, defendant had served 25 months for the 1994 conviction. Consequently, if the provision in the 1996 judgment crediting defendant on that sentence for time served on the sentence for the 1994 conviction had been lawful, the effective sentence on his 1996 conviction would have been 40 months and he would have been required to serve 65 months of imprisonment for the two convictions combined.
*509Defendant appealed from the 1996 judgment of conviction on the first-degree manslaughter charge, assigning error to a ruling unrelated to his sentence.1 Meanwhile, the Department of Corrections declined to grant defendant credit toward his sentence for his 1996 conviction, despite the notation in the 1996 judgment so directing. Because of that refusal, and while the appeal was pending, defendant filed a motion in the trial court for entry of a “corrected judgment pursuant to ORS 138.083.” In that motion, defendant conceded that the trial court was not authorized to order credit toward his 1996 sentence for time served on his 1994 sentence, as it had done, and that the provision was a nullity. Defendant urged the court either to amend the 1996 judgment by imposing a downward departure sentence or to amend it in such a way that the 65-month sentence would be treated as having begun to run on June 7,1994.
The sentencing court agreed that it erred by ordering credit for time served on the first conviction because “credit for time served is controlled by the Corrections Division [sic] * * The court also concluded that the attempted murder and first-degree manslaughter convictions “do not merge,” and that it therefore could not use merger to achieve the same effective sentence on the 1996 conviction that it originally had attempted to impose. Finally, the court recognized that, because the sentence had been executed, the court could not modify the judgment by departing downward from the presumptive sentence. The mechanism that the court identified to achieve the sentence it originally thought defendant would serve — that is, a total sentence of 65 months for both convictions — was to impose the same sentence but to change the date of the judgment. It therefore amended the judgment and dated it April 2, 1998, the date of the hearing on defendant’s motion. The court then added, after that true date, “Nunc pro tunc, as, of, and for June 7, 1994,” which is the date that defendant began serving the 1994 attempted murder sentence. The court explained why it made the modification:
*510“When I entered the judgment and said it was to run concurrently, what I failed and omitted, and I believe this would fit under [ORS] 138.083, to do was to say that I intended to relate the judgment back to the date of conviction on the [attempted murder] offense, which would have been 6-7-94, so I think my error, my clerical error, was my failure to say on the judgment nunc pro tunc to 6-7-94, which I would be willing to amend the judgment to say to try desperately to effect the court’s intention.”
The state appeals from the amended judgment entered in April 1998, and the parties renew the arguments they made below. In addition, they dispute whether the scope of our review encompasses the state’s challenges. The parties’ arguments thus frame three issues for us to decide: First, are the state’s challenges to the court’s authority to modify the judgment within our scope of review? Second, if so, did the original judgment contain an error that the trial court had authority to modify? Third, if the court had authority to modify the sentence, did the trial court amend the judgment and sentence in a legally authorized way? We address each issue in turn.
The dispute over our scope of review arises because the state appeals from a judgment imposing a 65-month period of incarceration, which the parties agree is the presumptive period of imprisonment under the sentencing guidelines for defendant’s offense. Under ORS 138.222(2)(a), an appellate court may not review a presumptive sentence. ORS 138.222(2)(e) further provides that, subject to limited exceptions, the appellate court shall not review “any other issue related to sentencing.” The potentially applicable exception here is contained in ORS 138.222(4)(a), which permits an appellate court to review a claim that “[t]he sentencing court failed to comply with requirements of law in imposing or failing to impose a sentence.”
We begin our analysis with the Supreme Court’s decision in State ex rel Huddleston v. Sawyer, 324 Or 597, 607, 932 P2d 1145, cert den 522 US 994 (1997), which examined the limitation on appellate review contained in those statutes. In Huddleston, the state filed a petition for writ of mandamus seeking to have a presumptive guidelines sentence vacated. The trial court had imposed that sentence, *511rather than a Ballot Measure 11 minimum, after concluding that Measure 11 was unconstitutional. The Supreme Court first had to decide whether, in an appeal to our court, the claim would be within the scope of what we could review, thus precluding mandamus as a remedy. To argue that it would be, the defendant relied on ORS 138.222(4)(a) — the same subsection that concerns us here.
The Supreme Court first examined ORS 138.222(2)(a) and its prohibition of appellate review of “[a]ny sentence that is within the presumptive sentence prescribed by [the sentencing guidelines].”2 The court determined that the terminology “presumptive sentence” was a reference “to a specified number of months of incarceration for a conviction that has been placed in the proper grid block.” Huddleston, 324 Or at 605 (emphasis in original). In other words, the statute precludes review of the length of a presumptive sentence, that is, the term of months imposed.
The court then examined whether ORS 138.222(2)(a) barred appellate review of the state’s challenge. On that point, the opinion is worth quoting:
“The only remaining issue under ORS 138.222(2)(a) is whether relator [the state] is seeking appellate ‘review’ of that sentence. What relator calls into question here is the number of months of incarceration to which [the defendant] has been sentenced, even though his conviction has been placed in the proper grid block. What relator seeks is a different sentence that is not ‘within the presumptive sentence’ for a conviction that has been placed in the proper p-id block. Thus, from the text of ORS 138.222(2)(a), relator is seeking ‘review’ of a ‘sentence that is within the presumptive sentence prescribed by’ the felony sentencing guidelines.”
Huddleston, 324 Or at 605-06 (emphasis in original).3 In short, because the state’s claim in Huddleston challenged the *512sentence based on its length, the limitation on appellate review contained in ORS 138.222(2) applied.
That led the court to a second step in the inquiry: whether review was nonetheless permissible under ORS 138.222(4)(a), which states an exception to ORS 138.222(2)(e)4 and permits review of a claim that the “sentencing court failed to comply with requirements of law in imposing or failing to impose a sentence.” The court held that the exception did not apply because the state’s challenge fell within the review prohibited by ORS 138.222(2)(a):
“As we have concluded, relator’s petition asks for review of the number of months of incarceration to which [the defendant] has been sentenced under the presumptive sentence portion of the felony sentencing guidelines, which is the precise subject covered by ORS 138.222(2)(a), not an ‘other’ issue covered by ORS 138.222(2)(e). That being so, ORS 138.222(4)(a) is not available.”
Huddleston, 324 Or at 607. Huddleston thus holds that if a sentence is challenged based on its length — that is, the number of months of incarceration — review is barred by ORS 138.222(2)(a), and the exception in ORS 138.222(4)(a) does not apply.
Huddleston does not fully resolve the reviewability issue in this case, but it does at least tell us that the state’s claim is not barred by ORS 138.222(2)(a). Here, in contrast to Huddleston, the state does not seek review of defendant’s sentence. Defendant was sentenced to the presumptive term. The state has no quarrel with the term or the length of the sentence. Just the opposite: the state contends that the number of months of incarceration imposed is exactly what it should be and that the length of the sentence should remain unchanged. What the state objects to — and what it wants us to review — are procedural issues pertaining to how the sentence was imposed: the trial court’s authority to amend the sentence at all and the manner in which the trial court dated the amended judgment. Thus, because the challenges here are not to the length of the sentence, review is not barred *513under ORS 138.222(2)(a). The remaining question, then, is only whether the issues that the state raises are reviewable pursuant to ORS 138.222(4)(a), which permits review of a claim that the “sentencing court failed to comply with the requirements of law in imposing or failing to impose a sentence.”
In construing ORS 138.222(4)(a), we recently noted its narrow application and concluded that it applies only to errors of law in imposing or failing to impose the sentence itself, not to procedures that in one way or another precede the actual imposition of the sentence. State v. Sanchez, 160 Or App 182, 186, 981 P2d 361, rev den 329 Or 318 (1999). In Sanchez, the defendant challenged the validity of his conviction and sentence on the ground that the trial court had failed to require the court-appointed Spanish interpreter to place her credentials on the record. We held that the defendant’s challenge was not reviewable pursuant to ORS 138.222, because the failure to certify an interpreter concerned the procedure that led to the imposition of the sentence and not the lawfulness of the sentence itself. Id. at 186-88.
Unlike in Sanchez, the state’s challenges to the amended judgment in this case fit within our review under ORS 138.222(4)(a). The state’s first argument is that the court did not comply with ORS 138.083, which controls when and how a court may amend a sentence when the judgment imposing the sentence has been appealed. The state’s claim here is that imposition of an amended sentence was beyond the court’s authority under that statute and, thus, that the sentence itself was unlawful. That contention falls squarely within the terms of what we may review under ORS 138.222(4)(a) — that is, a claim that the sentencing court “failed to comply with requirements of law in imposing * * * a sentence.” The same is true of the state’s argument that the particular modification that the court made was legally erroneous. That claim likewise challenges the lawfulness of the sentence itself based on the court’s alleged noncompliance with legal requirements in imposing the amended sentence; it is not a challenge to the lawfulness of the procedures that merely precede the imposition of a sentence. Thus, that claim, too, is within the scope of the issues that we may *514review.5 We turn, therefore, to the merits of the state’s arguments.6
On the merits, the first issue is whether, apart from the sentencing court’s authority to make the particular modification that it made, it had authority to make any modification whatsoever to defendant’s sentence for first-degree manslaughter. The resolution of that issue depends on whether the original sentence contained an error that gave rise to the court’s authority to correct or modify it. Because defendant’s appeal was pending when he sought to have the sentence modified, ORS 138.083 applies. It provides, in relevant part:
“(1) The sentencing court shall retain authority irrespective of any notice of appeal after entry of judgment of conviction to modify its judgment and sentence to correct any arithmetic or clerical errors or to delete or modify any erroneous term in the judgment.”
*515As we recently observed in State v. Horsley, 168 Or App 559, 563, 7 P3d 646 (2000), trial courts have inherent authority to modify sentences to correct certain kinds of errors. ORS 138.083(1) is not the source of that authority, but rather it ensures that trial courts “retain” that authority notwithstanding the appeal. Horsley, 168 Or App at 563. The statute is important here because defendant had appealed the original judgment, and the trial court entered its amended judgment while that appeal was pending. Generally, the filing of a proper appeal divests the trial court of its jurisdiction to amend a judgment. See generally Caveny v. Asheim et al, 202 Or 195, 210, 274 P2d 281 (1954); State v. Rickey, 97 Or App 41, 775 P2d 327 (1989) (filing of appeal divested court of jurisdiction to hold restitution hearing and impose restitution); State v. Branson, 87 Or App 75, 741 P2d 516 (1987) (pendency of appeal divested trial court of jurisdiction to modify judgment). Thus, when an appeal has been properly filed and is pending, the court’s authority to modify a criminal judgment is pursuant to the terms of ORS 138.083(1). Consequently, in this case, the sentencing court had authority to “correct” arithmetic or clerical errors and to “delete or modify” any erroneous term in the judgment and sentence.
In moving for a modification pursuant to ORS 138.083, defendant relied on the fact that the Department of Corrections had no obligation to comply with the directive in the 1996 judgment to credit defendant with time served on the 1994 attempted-murder conviction. Both the state and the sentencing court agreed that the court lacked authority to make that provision. See ORS 137.320(3); ORS 137.370. To be sure, the credit-for-time-served directive in the original order was a nullity; it had no force and effect, even if it remained in the judgment. But it was an erroneous term just the same. The court therefore had authority to delete or modify it under ORS 138.083(1). Indeed, the state effectively conceded as much below, urging that the credit-for-time-served language was “without legal authority” and that the sentencing court should delete that term from the judgment.7
*516The remaining issue is whether the sentencing court had authority to amend the judgment and sentence in the way that it did — that is, to enter the amended judgment nunc pro tunc as of June 7, 1994. Literally translated, the phrase “nunc pro tunc” means “now for then.” Black’s Law Dictionary, 1097 (7th ed 1999). Those words, when added to the date of an order or judgment, serve the precise and technical purpose of causing the record to reflect the actual date on which an undocumented ruling was made, either in fact or by force of law:
‘The purpose of a nunc pro tunc order is to supply an omission in the record of action actually taken but omitted from the record through inadvertence or mistake, or to enter an order which should have been made as a matter of course and as a legal duty. Such an order is effective only when it records a previously omitted truth — it does not create, but only speaks what has been done.”
Gillespie v. Kononen, 310 Or 272, 276 n 7, 797 P2d 361 (1990) (citations omitted); accord Haimovitz and Haimovitz, 163 Or App 244, 247-48, 987 P2d 584 (1999).
The nunc pro tunc entry in dispute in this case did not serve that technical purpose. In sentencing defendant on June 7,1994, for attempted murder, the court did not declare at that time that defendant would receive credit toward his 1996 sentence for first-degree manslaughter for time served on the 1994 conviction. Indeed, defendant had not at that point even committed manslaughter, let alone been charged, tried, and convicted of the crime. In other words, the purpose of the nunc pro tunc entry in this case was not, and could not have been, to “speak the truth” of what the court ordered in 1994. Rather, the court’s acknowledged objective was to achieve the same sentence that it had attempted to achieve with its 1996 sentencing order. The court therefore attempted to enter the date of the judgment in such a way *517that defendant would be deemed to have begun serving his sentence for manslaughter before he even committed the crime.
Whatever other issues that outcome may present, metaphysical as well as legal, the straightforward problem for our purposes here is that the judgment legally cannot be dated nunc pro tunc June 7, 1994, because the court did not on that date sentence defendant on his 1996 conviction. The situation here is closely analogous to that in State ex rel Juv. Dept. v. Dreyer, 328 Or 332, 976 P2d 1123 (1999). There, a juvenile court, although not using the words “nunc pro tunc,” arguably provided for its order of dismissal to be deemed effective on a date earlier than the date on which the court actually granted the dismissal. The Supreme Court held that the order could not be given nunc pro tunc effect:
“Although, initially,the inclusion of that wording shows an intention on the part of the juvenile court to enter an order ‘nunc pro tunc,’ the order is not — indeed, cannot bean order of that kind. Nunc pro tunc orders are a manifestation of the inherent power of a court to make its record speak the truth, that is, to correct clerical errors at a later time so that the record reflects what actually occurred at an earlier time. See, e.g., Mullinax and Mullinax, 292 Or 416, 424, 639 P2d 628 (1982) (describing court’s inherent authority to correct clerical errors). The juvenile court’s ‘same effect’ wording in the present case does not serve that purpose: Nothing in the record before this court suggests that the juvenile court dismissed the petition before adjudication.”
Dreyer, 328 Or at 339. The same is true here. The imposition of defendant’s sentence nunc pro tunc as of June 7,1994, was error because the trial court was attempting impermissibly to have its ruling take effect before it made that ruling, rather than to have the record reflect the truth of any ruling made on the nunc pro tunc date. See also ORS 137.071(11) (criminal judgment must be signed and dated as of the date of signature).
Judgment modified to delete provision for credit for time served and to delete “Nunc pro tunc, as, of, and for June 7,1994” from date of judgment; otherwise affirmed.
We affirmed without opinion. State v. Lavitaky, 155 Or App 647, 967 P2d 532, revelen 328 Or 41 (1998).
Actually, before the court did that, it considered whether Measure 11 impliedly repealed the sentencing guidelines for all covered crimes, making it a legal impossibility to impose a presumptive sentence on any Measure 11 crime and, thus, rendering ORS 138.222(2) inapplicable altogether. The court rejected the argument that Measure 11 had that effect. Huddleston, 324 Or at 603-05.
The court went on to examine the legislative history, in case the text and context left any doubt, and determined that it reinforced the court’s first-level understanding of the language.
Subsection (2)(e) precludes review of “any other issue related to sentencing” except as provided in subsections (3) and (4).
Compare Sanchez, 160 Or App at 186-88 (challenge to failure to establish interpreter qualifications is not within scope of review under ORS 138.222(4)(a)) and State v. Henderson, 116 Or App 604, 843 P2d 459 (1992), mod on other grounds 124 Or App 426, 861 P2d 406 (1993) (same for argument challenging the vacation of an original sentence and not the amended sentence itself), with State v. DeCamp, 158 Or App 238, 240-41, 973 P2d 922 (1999) (challenge to sentencing court’s authority to modify an executed sentence is within scope of review under ORS 138.222(4)(a)) and State v. Stokes, 133 Or App 355, 891 P2d 13 (1995) (same for challenge to court’s authority to order presumptive sentences to be served consecutively).
The concurring opinion’s essential point is that Henderson, is inconsistent with our conclusion in this case and should be overruled. In Henderson, the defendant challenged the trial court’s authority to vacate his original sentence. The defendant, however, raised that challenge on appeal from a different sentence that the trial court subsequently imposed. The state argued that the defendant’s challenge was beyond the scope of our review because the error alleged did not occur in the proceeding in which the trial court imposed the sentence contained in the judgment on appeal and the defendant was not claiming that the current sentence was itself unlawful. Rather, the alleged error related to a ruling that preceded the imposition of the defendant’s current sentence. Although our opinion is abbreviated, we agreed, holding that the trial court’s authority to vacate the original sentence was not reviewable on appeal from the subsequently imposed sentence. Henderson, 116 Or App at 606. Here, in contrast to Henderson, the state’s challenge is to the sentence contained in the judgment from which it appeals and relates to a procedural error in the imposition of that sentence, not to some procedural error committed earlier and at a temporally distinct time. Henderson thus was in a significantly different posture and this case provides no opportunity to determine whether it was correctly decided.
On appeal, the state primarily takes issue with the sentencing court’s characterization of the error as “clerical” in nature. Defendant, in response, urges that *516the provision should be viewed as an erroneous term. We agree with the state that the directive to give defendant credit for time served on the earlier conviction is not a clerical error. But we also agree with defendant that the provision qualifies as an erroneous term. Our review of the record suggests to us that the parties took that view and that the court characterized the provision both as a clerical error and a legally erroneous term. Even if the court had not done so, we would treat the provision as an erroneous term on a “right for the wrong reason” rationale.