OPINION OF THE COURT
COWEN, Circuit Judge.
This appeal presents two novel questions of law in this Circuit involving a prisoner serving a sentence under the Youth Corrections Act. The prisoner was convicted of another crime while serving the youth sentence and, because of the court’s finding that he would no longer benefit from treatment as a youth offender, he was given a consecutive sentence as an adult. The first issue is whether the prisoner is entitled to receive statutory good time credits because of the failure, pursuant to this “no further benefit” finding, to segregate him from adult prisoners, as the Youth Corrections Act requires. The second issue is whether the same prisoner is similarly entitled to good time credits because he was not segregated from adult prisoners during certain periods of his incarceration even before he was sentenced as an adult.
The district court held that the prisoner was not entitled to receive any good time credits. We hold that he is entitled to good time credits for the period starting from his sentencing as an adult, but not for time allegedly served under conditions violating the YCA prior to the adult sentencing. We therefore will reverse and remand for disposition in accordance with this Opinion.
I.
On October 26, 1979, Timothy Lewis (“Lewis”) was sentenced in the Superior Court for the District of Columbia to a fifteen year term for assault with intent to rob, and to a ten year concurrent term for assault with a dangerous weapon. Both sentences were imposed under the Youth Corrections Act, 18 U.S.C. §§ 5005-26 (1982) (repealed 1984) (“YCA”).1
While serving this sentence at the Federal Correctional Institution at Petersburg, Virginia, Lewis was convicted of assault by striking, beating or wounding within the special territorial jurisdiction of the United [716]*716States, in violation of 18 U.S.C. § 113(d). On October 21, 1982, the United States District Court for the Eastern District of Virginia sentenced Lewis to six months in prison for that offense, to run consecutively with the sentences which he was already serving. Moreover, pursuant to Ralston v. Robinson, 454 U.S. 201, 102 S.Ct. 233, 70 L.Ed.2d 345 (1981), discussed infra section III.A., the sentencing court imposed the six-month sentence on Lewis as an adult, after specifically finding that Lewis would obtain no further benefit from being treated as a youth offender under the YCA. App. at 46.
As a result of the “no further benefit” finding made by the court in the 1982 sentencing, Lewis’ participation in the YCA program was terminated and his treatment as an adult prisoner began. Since then he has not been segregated from adult prisoners, as mandated under the YCA.2
On January 8, 1988, Lewis filed a pro se petition for writ of habeas corpus pursuant to 28 U.S.C. § 2241 in the United States District Court for the Middle District of Pennsylvania. The essence of Lewis’ habe-as petition was that his treatment as an adult, pursuant to the court’s finding of no further benefit, transformed his YCA sentence into an adult sentence and required that he be granted good time credits like other adult prisoners. App. at 11. The brief in support of the petition also contained an argument that Lewis had been housed with adults, in violation of the YCA, even before the 1982 sentencing. App. at 25.3
On February 11, 1988, Lewis filed a motion for summary judgment on the transformation issue. App. at 49-59. Pursuant to the district court’s request, the parties filed briefs on the issues raised in Scott v. United States, 778 F.2d 1444 (10th Cir.1985) (per curiam), and Johnson v. Rodgers, 756 F.2d 79 (10th Cir.1985), discussed infra section III. On May 6, the court denied Lewis’ application for bail pending a decision on the merits of his petition. On June 6, the district court issued a memorandum opinion and order denying Lewis’ petition for habeas corpus and his motion for summary judgment.4 Lewis filed a notice of appeal on June 17, and he filed a pro se appellate brief with this Court on July 27. On November 29, 1988, counsel was appointed to represent Lewis.
II.
The core purpose of the YCA is rehabilitation. See Dorszynski v. United States, 418 U.S. 424, 433, 94 S.Ct. 3042, 3048, 41 L.Ed.2d 855 (1974). To this end, the YCA allows a youthful offender to receive an indeterminate sentence, during which time he is to undergo a comprehensive program of rehabilitation, followed by a period of conditional release. See 18 U.S.C. §§ 5010 and 5017.5 The time of release is based on a determination that the offender has made [717]*717sufficient progress towards rehabilitation, and thus it is possible for a youthful offender sentenced under the YCA to be confined longer than an adult who has been convicted of the same offense. See Johnson v. Rodgers, 756 F.2d 79, 80 (10th Cir.1985).6
An important principle of the YCA is that, once a person is committed for treatment under the YCA, the sentence is designed to fit the person, not the crime. Dorszynski, 418 U.S. at 434, 94 S.Ct. at 3048. The person committed is subject to study and recommendation as to appropriate treatment, see 18 U.S.C. §§ 5014 and 5015, and to a broad range of treatment options, ranging from maximum security confinement to forestry camps, see 18 U.S. C. § 5011. A fundamental aspect of the treatment program is that youth offenders are segregated, along with those requiring similar treatment, from offenders serving traditional criminal sentences, see 18 U.S.C. § 5011, in order to “avoid the influence of association with the more hardened inmates.” Dorszynski, 418 U.S. at 434, 94 S.Ct. at 3048.7
III.
A.
In challenging the denial of his petition for habeas corpus, Lewis seeks review of the district court’s legal conclusions, and thus our standard review is plenary.
We first review the transformation issue.
Free access — add to your briefcase to read the full text and ask questions with AI
OPINION OF THE COURT
COWEN, Circuit Judge.
This appeal presents two novel questions of law in this Circuit involving a prisoner serving a sentence under the Youth Corrections Act. The prisoner was convicted of another crime while serving the youth sentence and, because of the court’s finding that he would no longer benefit from treatment as a youth offender, he was given a consecutive sentence as an adult. The first issue is whether the prisoner is entitled to receive statutory good time credits because of the failure, pursuant to this “no further benefit” finding, to segregate him from adult prisoners, as the Youth Corrections Act requires. The second issue is whether the same prisoner is similarly entitled to good time credits because he was not segregated from adult prisoners during certain periods of his incarceration even before he was sentenced as an adult.
The district court held that the prisoner was not entitled to receive any good time credits. We hold that he is entitled to good time credits for the period starting from his sentencing as an adult, but not for time allegedly served under conditions violating the YCA prior to the adult sentencing. We therefore will reverse and remand for disposition in accordance with this Opinion.
I.
On October 26, 1979, Timothy Lewis (“Lewis”) was sentenced in the Superior Court for the District of Columbia to a fifteen year term for assault with intent to rob, and to a ten year concurrent term for assault with a dangerous weapon. Both sentences were imposed under the Youth Corrections Act, 18 U.S.C. §§ 5005-26 (1982) (repealed 1984) (“YCA”).1
While serving this sentence at the Federal Correctional Institution at Petersburg, Virginia, Lewis was convicted of assault by striking, beating or wounding within the special territorial jurisdiction of the United [716]*716States, in violation of 18 U.S.C. § 113(d). On October 21, 1982, the United States District Court for the Eastern District of Virginia sentenced Lewis to six months in prison for that offense, to run consecutively with the sentences which he was already serving. Moreover, pursuant to Ralston v. Robinson, 454 U.S. 201, 102 S.Ct. 233, 70 L.Ed.2d 345 (1981), discussed infra section III.A., the sentencing court imposed the six-month sentence on Lewis as an adult, after specifically finding that Lewis would obtain no further benefit from being treated as a youth offender under the YCA. App. at 46.
As a result of the “no further benefit” finding made by the court in the 1982 sentencing, Lewis’ participation in the YCA program was terminated and his treatment as an adult prisoner began. Since then he has not been segregated from adult prisoners, as mandated under the YCA.2
On January 8, 1988, Lewis filed a pro se petition for writ of habeas corpus pursuant to 28 U.S.C. § 2241 in the United States District Court for the Middle District of Pennsylvania. The essence of Lewis’ habe-as petition was that his treatment as an adult, pursuant to the court’s finding of no further benefit, transformed his YCA sentence into an adult sentence and required that he be granted good time credits like other adult prisoners. App. at 11. The brief in support of the petition also contained an argument that Lewis had been housed with adults, in violation of the YCA, even before the 1982 sentencing. App. at 25.3
On February 11, 1988, Lewis filed a motion for summary judgment on the transformation issue. App. at 49-59. Pursuant to the district court’s request, the parties filed briefs on the issues raised in Scott v. United States, 778 F.2d 1444 (10th Cir.1985) (per curiam), and Johnson v. Rodgers, 756 F.2d 79 (10th Cir.1985), discussed infra section III. On May 6, the court denied Lewis’ application for bail pending a decision on the merits of his petition. On June 6, the district court issued a memorandum opinion and order denying Lewis’ petition for habeas corpus and his motion for summary judgment.4 Lewis filed a notice of appeal on June 17, and he filed a pro se appellate brief with this Court on July 27. On November 29, 1988, counsel was appointed to represent Lewis.
II.
The core purpose of the YCA is rehabilitation. See Dorszynski v. United States, 418 U.S. 424, 433, 94 S.Ct. 3042, 3048, 41 L.Ed.2d 855 (1974). To this end, the YCA allows a youthful offender to receive an indeterminate sentence, during which time he is to undergo a comprehensive program of rehabilitation, followed by a period of conditional release. See 18 U.S.C. §§ 5010 and 5017.5 The time of release is based on a determination that the offender has made [717]*717sufficient progress towards rehabilitation, and thus it is possible for a youthful offender sentenced under the YCA to be confined longer than an adult who has been convicted of the same offense. See Johnson v. Rodgers, 756 F.2d 79, 80 (10th Cir.1985).6
An important principle of the YCA is that, once a person is committed for treatment under the YCA, the sentence is designed to fit the person, not the crime. Dorszynski, 418 U.S. at 434, 94 S.Ct. at 3048. The person committed is subject to study and recommendation as to appropriate treatment, see 18 U.S.C. §§ 5014 and 5015, and to a broad range of treatment options, ranging from maximum security confinement to forestry camps, see 18 U.S. C. § 5011. A fundamental aspect of the treatment program is that youth offenders are segregated, along with those requiring similar treatment, from offenders serving traditional criminal sentences, see 18 U.S.C. § 5011, in order to “avoid the influence of association with the more hardened inmates.” Dorszynski, 418 U.S. at 434, 94 S.Ct. at 3048.7
III.
A.
In challenging the denial of his petition for habeas corpus, Lewis seeks review of the district court’s legal conclusions, and thus our standard review is plenary.
We first review the transformation issue. The sentencing court in 1982 specifically found that Lewis would no longer benefit from youth status under the YCA, and shortly thereafter Lewis’ incarceration with adults began. Lewis argues that he is entitled to good time credits based on a theory that his YCA sentence was transformed into an adult sentence as a result of the “no further benefit” finding in the 1982 sentencing. Lewis does not challenge the 1982 sentencing decision itself, but only the denial of good time credits pursuant to that sentence.8
We have previously noted that “[njeither the Congressional history nor the statute made any provision for the possibility that the treatment provided would be so unsuccessful that the committed YCA offender might commit a serious crime during a YCA sentence and thereby be required to serve a subsequent adult sentence.” Thompson v. Carlson, 624 F.2d 415, 420 (3d Cir.1980). Likewise, the YCA neither explicitly provides for good time credits nor instructs as to good time entitlement when a youth offender is sentenced as an adult during service of the YCA sentence.
Good time credits are provided for under a separate federal statutory scheme. See [718]*71818 U.S.C. § 4161 (Supp.1988) (repealed 1984).9 Good time credits are allowed for “[e]ach prisoner convicted of an offense against the United States and confined in a penal or correctional institution for a definite term other than for life.” Id. (emphasis added). Because youth offenders sentenced pursuant to 18 U.S.C. § 5010 are sentenced to the custody of the Attorney General for treatment and supervision until discharged as provided by 18 U.S.C. § 5017, such sentences are for an indefinite term. Thus, the good time provisions generally do not apply to YCA offenders. See Staudmier v. United States, 496 F.2d 1191, 1192, (10th Cir.1974) (per curiam).
In Ralston v. Robinson, 454 U.S. 201, 102 S.Ct. 233, 70 L.Ed.2d 345 (1981), the Supreme Court held that, where a prisoner serving a sentence under the YCA is convicted of another crime while serving the original sentence, the “judge who sentences [the] youth offender to a consecutive adult term may require that the offender also serve the remainder of his youth sentence as an adult.” Id. at 217, 102 S.Ct. at 243. The Court also stated that the sentencing judge in such a case should make an explicit finding that the youth would no longer benefit from youth status during the remainder of the youth sentence. Id. at 218-19, 102 S.Ct. at 244. The Supreme Court has not addressed whether a prisoner in this situation is entitled to receive good time credits. This issue has been addressed, however, in two cases decided by the United States Court of Appeals for the Tenth Circuit. That court ordered an award of good time credits in Johnson v. Rodgers, 756 F.2d 79 (10th Cir.1985), but denied credits in Scott v. United States, 778 F.2d 1444 (10th Cir.1985) (per curiam). We look to these cases for guidance.
In Johnson, the petitioner was serving a zero-to-six year sentence under the YCA, where the comparable sentence for an adult who commits the same offense was a three-year maximum. While serving this sentence, the petitioner witnessed a prison assault and was placed in administrative detention for his own safety. The district court found that while he was in protective custody, he could not participate in the minimum required YCA rehabilitative programs. 756 F.2d at 81. The court summarized the petitioner’s situation and concluded as follows:
[Petitioner] lacked the rehabilitative benefits of the YCA, yet he was serving a longer sentence than would an adult, and without the incentive of early release based on good-time credit that an adult would enjoy. In view of the clear congressional intent expressed in the YCA, the conditions of petitioner’s incarceration were legally unacceptable.
Id. Additionally, the court rejected the government’s argument that the prisoner himself was somehow responsible for his predicament. The court stated that if the prison administration could not fulfill its duty under the YCA to provide rehabilitative programs, it should have taken remedial action by granting good time credits. Id.10
In Scott v. United States, 778 F.2d 1444 (10th Cir.1985) (per curiam), decided shortly after Johnson, the court faced the issue of whether an offender sentenced under the YCA who violated the terms of his parole should receive good time credits for time served in a facility which failed to separate him from adult inmates. The petitioner [719]*719was originally sentenced under the YCA for a zero-to-six year term for burglary, but was paroled two years later. While incarcerated, however, he was not segregated from adult prisoners.11 While out on parole, he was convicted of another burglary, and he misrepresented his conviction at a subsequent parole revocation hearing. His parole was revoked and he was reincar-cerated to serve the remainder of his sentence. Id. at 1445-46. He apparently raised the issue of the pre-parole YCA violation only after his reincarceration.
Initially, the Scott court recognized that it had allowed good time credits in similar circumstances in Johnson. The court denied relief, however, stating:
[W]e agree with the district court’s conclusion that the appellant is not entitled to good time credits for being incarcerated with adult inmates. As recognized in Johnson v. Rodgers, the allowance of good time credits in such circumstances is an equitable remedy and as such should only be granted where “in equity and conscience” the petitioner is so entitled. The district court’s conclusion that the equities did not favor the granting of such relief in light of the appellant’s burglary conviction subsequent to his parole is consistent with the conclusions of other courts confronted with parole violators seeking similar relief. Although the district court did grant good time credits for a failure to segregate YCA offenders from adult inmates, such relief was not accorded offenders who had violated the terms of their parole. Similarly, in Hernandez v. Rogers, No. 84-2353 (Order and Judgment) (10th Cir. July 24, 1985), this court affirmed the denial of good time credits on the ground that petitioner’s violation of the terms of his parole prevented the award of equitable relief.
Id. at 1446 (citation omitted). Thus, language at the end of the Scott opinion appears to limit the reach of the court’s holding specifically to cases where the offender has violated his parole and therefore cannot fairly look to the court for equitable relief.
The district court in the instant case determined that Lewis’ situation was more akin to Scott than Johnson, in that Lewis was denied good time credits because it was his own misbehavior which led to his 1982 conviction and sentencing as an adult. Therefore, the court concluded, equity did not justify awarding Lewis good time credits. App. at 239. In addition, the court determined that it simply was not authorized under YCA to award good time credits:
Id. at 239-40.
Initially, we do not agree with the district court that, because the YCA does not specifically provide for good time credits, we are powerless to grant such an award. In deciding a similarly novel issue — whether a prisoner consecutively sentenced as an adult while serving a YCA sentence could be returned to the general prison popula[720]*720tion for the remainder of his YCA sentence — this Court stated: “It is ... apparent that the issue presented by this factual situation was not in the contemplation of Congress when it enacted the YCA, and that, however we rule, we will be required to fill in the interstices of the statute.” Thompson v. Carlson, 624 F.2d at 419. We proceeded to do just that, holding that the prisoner need not be segregated while serving the remainder of his first sentence under the YCA.12 We did so despite the fact that nothing in the YCA addressed the effect of a subsequent adult sentence imposed during service of a YCA sentence. Thus, while this is a difficult issue on which little guidance exists, we are not as hesitant as the district court to fill in the interstices of the statute, where good reason exists to do so.
Neither the statute providing for good time credit nor the YCA address this problem. We cannot believe, however, that had Congress considered the problem, it would accept the unfairness resulting when a prisoner is, in effect, caught between the two statutes and denied the benefits of either. As the court in Johnson noted, the purpose of the YCA is rehabilitation, and the indicator for early release under the YCA is not the sentence reduced by good time but rather the offender’s progress toward rehabilitation. 756 F.2d at 80. In light of this, once rehabilitation is abandoned both as a statutory goal and as a measure of early release, the incarceration effectuates a different purpose and similarly should have some other measure of early release.
Nor do we think that to grant good time credits under the circumstances of this case does violence to the YCA. We agree with the view that, under the YCA scheme, rehabilitation “may be regarded as a quid pro quo for a longer confinement.” Johnson v. Rodgers, 756 F.2d at 80 (quoting Carter v. United States, 306 F.2d 283, 285 (D.C.Cir.1962)).13 When the youth offender is housed with adult prisoners, a critical aspect of the rehabilitative program is lost, and the award of good time credits to reduce the sentence is appropriate.
Thus we agree with the Johnson court that if a petitioner is denied significant rehabilitative benefits — here, segregation— afforded by the YCA, and is also denied the good time credits which would reduce his sentence, the terms of his imprisonment are “legally unacceptable.” Id. at 81. We think that awarding good time credits as a fallback measure of early release when rehabilitation is abandoned is the most reasonable way to reconcile the YCA and the good time credits statute. This remedy supports the goals of both statutes and also leads to a fair result for prisoners in this situation. Of course, a prisoner who receives good time credits following a Ral-ston determination no longer retains any YCA benefits but is entitled only to the rights and privileges of an inmate serving an adult sentence.14
We acknowledge that the Court of Appeals for the Tenth Circuit came to a differ[721]*721ent conclusion in Scott, but we disagree with the court’s reasoning in that case.15 The statute allowing good time credits does not preclude the award of such credits to an offender originally sentenced as an adult and later incarcerated pursuant to a parole violation. A prisoner in that situation would be entitled to good time credits, assuming he has followed prison rules while incarcerated. See 18 U.S.C. § 4161. It is difficult to see, then, why an offender initially sentenced under the YCA who later violates parole should be treated differently than someone sentenced as an adult who later violates parole. If good time credits are awarded in the latter situation then they should also be awarded in the former.16
For the above reasons, we hold that Lewis is entitled to good time credits for the time he has been incarcerated with adults from the time of the 1982 finding that he would no longer benefit from the YCA.17
B.
Lewis also argues that he is entitled to good time credits for periods before his adult sentence during which he allegedly was not segregated from adult prisoners. Specifically, he seeks good time credits “for the period of October 26, 1979, through April, 1982, when the Federal Correctional Institution at Petersburg, Virginia, was converted to a YCA facility.” Supplemental Brief for Appellant, at 12-13. Appellees assert, however, that Lewis never presented this claim before the district court in his habeas petition and that we therefore should not consider it on appeal. Brief of Appellees, at 9-10.
Although this issue is not free from doubt, our analysis of Lewis’ habeas petition and accompanying brief, as well as the posture of this case, indicates that the non-segregation issue was raised below. Although Lewis’ habeas petition itself mentions only the transformation issue, his brief in support of the petition presents the nonsegregation issue. That brief alleges YCA violations based on nonsegregation prior to his adult sentence in 1982, and it alleges facts underlying the nonsegregation argument.18
We recognize that the nonsegregation argument appeared in the “Statement of [722]*722Case” section of the brief and was not included as a separate “Question Presented” or as an issue in the “Argument” section. While we may have appreciated a clearer delineation of the nonsegregation argument as a distinct issue, we nonetheless determine that the issue was fairly raised in the habeas petition below.
[719]*719However, regardless of the equities, this court will not exercise its equitable powers, assuming it has such powers in this circumstance, and grant to the petitioner that which the statute does not provide. Petitioner is serving a YCA sentence. The YCA does not provide petitioner with eligibility to earn good time credits. The statute does not make provision for a situation like the one at bar, nor, as is evident from the legislative history, did Congress contemplate such a situation. Thompson v. Carlson, 624 F.2d 415, 420 (3d Cir.1980). The court will not fill-in the interstices of the statute. Therefore, the petition will be denied.
[722]*722Our determination is supported not only by our review of the habeas petition and supporting brief, but also by the recognition that Lewis was proceeding pro se during all stages of the habeas proceedings before the district court.19 Fed.R.Civ.P. 8(f) states that “[a]ll pleadings shall be so construed as to do substantial justice.” Consistent with this rule is the well-established principle that a pro se prisoner’s pleadings should be subject to less stringent standards of specificity and their complaints should be construed liberally. See, e.g., Micklus v. Carlson, 632 F.2d 227, 236 (3d Cir.1980); United States ex rel. Walker v. Fayette County, 599 F.2d 573, 575 (3d Cir.1979).20
Although Lewis raised the nonsegregation issue below, our review of the district court’s opinion clearly indicates that the court did not reach Lewis’ nonsegregation argument, but decided only the transformation issue. See memorandum opinion, app. at 236-40. Nor did the court make any findings as to whether Lewis actually was denied segregation from adult prisoners prior to his 1982 adult sentence. Because of our disposition of this issue below, however, it is not necessary to remand this matter to the district court for fact-finding.
We will assume for purposes of our analysis that Lewis was indeed housed with adults at various times from 1979 through 1982, in violation of the YCA. Under the applicable statute, good time credits may only be awarded to prisoners incarcerated “for a definite term.” 18 U.S.C. § 4161. During the time of the alleged incidents (prior to the 1982 Ralston determination), however, Lewis was serving a YCA sentence, which is not for a definite term. See 18 U.S.C. § 5010(c) (the YCA section under which Lewis was sentenced in 1979); Staudmier v. United States, 496 F.2d 1191, 1192 (10th Cir.1974) (per curiam) (because YCA sentences are for an indefinite term, good time credits are generally not applicable to YCA offenders). Thus, the statute does not authorize the award of good time credits in this instance. Because a legal remedy is precluded, we would have to exercise our equitable powers if we were [723]*723to order an award of good time credits for these violations.21
While we can envision situations similar to this one where a prisoner would deserve the equitable award of good time credits, we believe that Lewis’ own conduct in this case precludes our granting him such a remedy. A petitioner in equity must come to the court with “clean hands,” and the petitioner’s wrongful or illegal conduct may dissuade a court from granting equitable relief on an otherwise meritorious claim. See, e.g., Faustin v. Lewis, 85 N.J. 507, 511, 427 A.2d 1105, 1107 (N.J.1981). In 1982, Lewis was found guilty and sentenced for assaulting a prison guard while in federal custody, in violation of 18 U.S.C. § 113(d).
We recognize that the assault occurred after the alleged YCA violations at issue. Ordinarily the wrong invoked under the clean hands maxim to defeat a suit must stand in direct and immediate relation to the equity which the petitioner seeks to enforce. See, e.g., Stauffer v. Stauffer, 465 Pa. 558, 575, 351 A.2d 236, 244 (Pa. 1976); Untermann v. Untermann, 19 N.J. 507, 517-18, 117 A.2d 599, 604 (N.J.1955); DeFuniak, Handbook on Modern Equity, at Sec. 24, p. 39 (1956) (petitioner may not receive equitable relief if he has been guilty of any inequitable or wrongful conduct with respect to the “transaction or subject matter sued on”). Nonetheless, we believe that Lewis is not entitled to equitable relief in this case, for two reasons.
First, Lewis’ misconduct led to his 1982 sentence as an adult and thus is related to our decision to award good time credits for gost-Balston determination YCA violations —a matter which is part of this litigation. Therefore, although Lewis’ misconduct did not create the situation for which he seeks equity, his misconduct does affect the equitable relations between the parties on a matter before this court.
Second, although the instant habeas corpus petition is a civil matter, the underlying criminal law issues involve policy concerns which color our discretionary application of the clean hands doctrine in a different light than if the doctrine had arisen in the more typical business or tort law context. Specifically, Lewis’ misconduct in this case implicates important public policy considerations of maintaining prison security and safety, and of avoiding the rewarding of prisoners who violate the law and prison rules and endanger prison personnel.
On these facts, we decline to exercise our equitable powers to order an award of good time credits for YCA violations which may have occurred from 1979 through 1982. Our decision is consistent with Scott v. United States, 778 F.2d 1444 (10th Cir.1985) (per curiam), discussed supra, where the court declined to grant good time credits to a YCA prisoner who had violated his parole after the alleged YCA violations. Lewis has committed a substantial wrong, against both the Appellees and the public, and this wrong is sufficiently related to this litigation to bar Lewis from equitable relief in this case.22
IV.
For the reasons discussed above, we will reverse the order of the district court denying Lewis’ petition for writ of habeas corpus and his motion for summary judgment. We will remand this case to the district court with instructions to enter an order granting Lewis good time credits calculated from October 21, 1982, the date on which Lewis was sentenced as an adult.