
830 A.2d 1099 (2003)
Clair A. INGRAM, Petitioner
v.
Carol A. NEWMAN; Individually and in her Official Capacity as the Prothonotary and Clerk of the Courts of Blair County, Pennsylvania; and Jeffrey Beard; Individually and in his official capacity as Secretary of the Department of Corrections, et al, Respondents.
Commonwealth Court of Pennsylvania.
Submitted on Briefs July 3, 2003.
Decided August 27, 2003.
*1101 Clair A. Ingram, petitioner, pro se.
Nathan W. Karn, Hollidaysburg, for respondent, C. Newman.
John J. Talaber, Camp Hill, for respondent, J. Beard.
BEFORE: PELLEGRINI, Judge, SIMPSON, Judge, and MIRARCHI, JR., Senior Judge.
*1100 OPINION BY JUDGE SIMPSON.
Petitioner Clair A. Ingram (Ingram), an inmate at a state correctional institution, filed a petition for review in this Court's original jurisdiction asserting that Carol A. Newman (Newman), Prothonotary and Clerk of Courts of Blair County, and Jeffrey Beard (Beard), Secretary of the Pennsylvania Department of Corrections (DOC) (collectively, Respondents), improperly deducted funds from his inmate account pursuant to Section 9728 of the Sentencing Code, 42 Pa.C.S. § 9728, commonly known as Act 84,[1] to pay sentenced costs, fines, and restitution.
Ingram filed a motion for summary relief under Pa. R.A.P. 1532(b), in response to which Beard filed a cross-motion for summary relief. Newman filed a brief in opposition to Ingram's motion but no cross-motion for summary relief.
Ingram is presently serving an aggregate sentence of 12 to 24 years' incarceration.[2] In addition to confinement, the *1102 sentencing court ordered Ingram to pay various costs, fines, and restitution. Ingram asks this Court to: 1) enter a declaratory judgment that Respondents violated his due process rights; 2) enjoin Respondents from deducting funds from his inmate account to satisfy the court-ordered financial obligations; and 3) order Respondents to reimburse him for the deductions already taken as well as the costs Ingram incurred in filing his petition for review.
Respondent Beard counters that: 1) Act 84 gives DOC authority to make the deductions; 2) Ingram is not entitled to an injunction to stop those deductions; and 3) Ingram is not entitled to reimbursement of the deductions already taken or the costs associated with filing his petition for review.
The granting of a petition for declaratory judgment under the Declaratory Judgments Act[3] is a matter lying within the sound discretion of a court of original jurisdiction. Gmerek v. State Ethics Comm'n, 751 A.2d 1241 (Pa.Cmwlth.2000), aff'd, 569 Pa. 579, 807 A.2d 812 (2002). Its purpose is to afford relief from uncertainty and insecurity with respect to rights, status, and other legal relations, and is to be liberally construed and administered. Id.
To prevail in an action for injunction, a party must establish that his right to relief is clear, that an injunction is necessary to avoid injury that cannot be compensated by damages, and that greater injury will result from refusing rather than granting the relief requested. Harding v. Stickman, 823 A.2d 1110 (Pa.Cmwlth. 2003). A court may not grant injunctive relief where an adequate remedy at law exists. Id.
Because we find Ingram is not entitled to the relief requested, we deny Ingram's application for summary relief and grant Beard's application for summary relief.[4]

I.
Ingram first asserts the sentencing court's failure to hold a hearing prior to the Act 84 deductions is an unauthorized taking of his private property in violation of due process.
The necessity for a hearing was discussed extensively in George v. Beard, 824 A.2d 393, 396 (Pa.Cmwlth.2003):
Considering the foregoing, it is clear that while in custody under sentence, an offender's sole avenues to challenge payment of financial aspects of the sentence are direct appeal and postconviction proceedings. These avenues are adequate remedies at law for an offender in custody to challenge any aspect of the sentence. If, however, failure to pay sentenced financial obligations exposes an offender to initial confinement, additional confinement or increased conditions of supervision, a hearing is warranted.

*1103 Stated differently, if an offender is notified that he or she is charged with contempt or with probation or parole violations as a result of failure to pay fines, costs or restitution, the offender should be afforded a hearing.
Garnishment of an inmate's account by corrections authorities does not deny an inmate a pre-deprivation due process hearing. He or she is afforded a hearing on ability to pay at the time of sentencing. Id.; 18 Pa.C.S. § 1106; 42 Pa.C.S. § 9726; Pa. R.Crim. P. 704(C)(1). An inmate is not entitled to another ability to pay hearing before Act 84 deductions are taken unless there is a material change of circumstances. Changed circumstances include the threat of additional confinement or increased conditions of supervision. George. However, Ingram neither pled nor offered proof of these changed circumstances. Therefore, his request for hearing has no merit. Similarly, his requests for declaratory and injunctive relief based on the lack of a hearing are meritless. Id.; Harding.
Act 84 does not facially deny due process, because hearings are provided at appropriate times. However, Ingram suggests that Act 84 as applied to him denies due process, because the sentencing court failed to inquire into his ability to pay during the sentencing colloquy.
Alleged failure of the sentencing court to inquire into Ingram's ability to pay could be the basis for relief on direct appeal from the sentence or in a postconviction application. George. Indeed, Ingram is pursuing a postconviction remedy. But alleged illegality of the underlying sentence does not entitle Ingram to the remedies he seeks against Respondents in this Court. In this regard, Ingram's current suit against Respondents is an improper collateral attack on the sentence. Com. v. Hall, 565 Pa. 92, 771 A.2d 1232 (2001) (Post Conviction Relief Act, 42 Pa.C.S. §§ 9541-9546, provides the sole means of obtaining collateral relief).
Ingram also argues that Act 84 deductions should be stayed during litigation of his postconviction petition in another court. Since Ingram did not apply for a stay, however, we need not address this argument further.

II.
Ingram next claims his due process rights were violated because DOC lacked authority to determine the amount deducted from his inmate account. This argument merely recasts Ingram's first argument: he claims he has a right to be heard on whether any deductions should be taken, and he claims he has a right to be heard on the deduction amount.
As discussed, Ingram has no right to a hearing in the absence of pleading and proof of a material change of circumstances since sentencing, such as the threat of initial confinement, additional confinement or increased conditions of supervision as a result of the unpaid financial obligations. George.
Further, Ingram does not aver or offer proof that he is unable to pay the amount deducted. While incarcerated, Ingram's basic needs, including food, shelter, clothing, and medical care, are provided by the Commonwealth. Ingram does not aver or offer to prove he has any additional expenses that would make him unable to pay the 20% deductions.[5] Also, there is no *1104 averment of a change of financial circumstances since sentencing. Accordingly, Ingram is not entitled to a hearing. Id. at 396. Further, he is not entitled to a declaration that his due process rights were violated, nor is he entitled to an order enjoining continued Act 84 deductions.

III.
Ingram is not entitled to reimbursement of the monies DOC already deducted from his account, as previously decided by this Court in Harding.
Similarly, since costs follow the judgment and Ingram will not prevail, he is not entitled to reimbursement of his costs in bringing this action. Profit Wize Mktg. v. Wiest, 812 A.2d 1270 (Pa.Super.2002) (no costs awarded to party who did not prevail); accord, Gregory v. Harleysville Mut. Ins. Co., 374 Pa.Super. 33, 542 A.2d 133 (1988) (costs are awarded to and recoverable by prevailing party).
For the foregoing reasons, Ingram's motion for summary relief is denied, and Beard's motion for summary relief is granted. The petition for review is dismissed with prejudice as to Beard.

ORDER
AND NOW, this 27th day of August, 2003, Petitioner Clair A. Ingram's motion for summary relief is DENIED. Respondent Jeffrey Beard's motion for summary relief is GRANTED. The petition for review is DISMISSED with prejudice as to Beard.
This Court lacking original jurisdiction over the remaining Respondent, Carol A. Newman, Prothonotary and Clerk of the Courts of Blair County, because she is not a Commonwealth officer, 42 Pa.C.S. § 761(a), the matter is TRANSFERRED to the Court of Common Pleas of Blair County. 42 Pa.C.S. § 5103.
NOTES
[1]  Act 84, passed by the General Assembly in June 1998, amended Section 9728 of the Sentencing Code, 42 Pa.C.S. § 9728, and provided a new subsection (b)(5), which authorized DOC to collect fines, costs, and restitution from inmate prison accounts and to forward the same to the designated representative of the sentencing county.
[2]  In March, 2000, Ingram was sentenced to incarceration for no less than 48 months and no more than 96 months on charges of Robbery and other, lesser, offenses. Later that same month, Ingram was sentenced on a charge of Burglary to incarceration for a period of 35 to 70 months, to run concurrent with his previous sentence. In June, 2001, Ingram was sentenced on several charges, including Receiving Stolen Property, Criminal Attempt, and 3 charges of Burglary, to an aggregate of 8 to 16 years' incarceration, consecutive to any other periods of incarceration.
[3]  42 Pa.C.S. §§ 7532-7551.
[4]  In ruling on an application for summary relief, we must view the evidence in the light most favorable to the non-moving party. Judgment may only be entered in cases where there is no genuine issue of material fact and the right to judgment is clear as a matter of law. Central Dauphin Sch. Dist. v. Dep't of Educ., 143 Pa.Cmwlth. 374, 598 A.2d 1364 (1991).
[5]  The 20% amount to be deducted was established by DOC's Policy Statement Number DC-ADM 005, which allows for initial payments of 20% of the inmate's account balance plus subsequent payments of 20% of all the inmate's income, provided the inmate has an account balance in excess of $10.00. DC-ADM 005 was written under the authority given to DOC in Act 84, "The Department of Corrections shall develop guidelines relating to its responsibilities under this paragraph." 42 Pa.C.S.A. § 9728(b)(5).
