¶1OPINION
¶2This litigation stems from the contested gubernatorial primary election of August, 1978. Plaintiffs were the primary election losers, Walter Hickel and Edward Merdes. Defendants included (1) state election officials (Lieutenant Governor Thomas and others, hereinafter referred to as the State), and (2) the primary winners, Jay Hammond and Chancy Croft. The State appeals from an order by the superior court assessing costs and attorneyâs fees against it and in favor of Croft.
¶3The plaintiffs, Hickel and Merdes, had contested the election pursuant to AS 15.-20.540,*797
¶4Croft was the only party to the action to make a timely motion for attorneyâs fees. The superior court held that the public interest exception of Gilbert v. State, 526 P.2d 1131 (Alaska 1974),
¶5Accordingly, the superior court ordered that Croft recover attorneyâs fees of $15,000 from the State of Alaska. Later, the superior court affirmed an order taxing costs of $4,208.85 against the State and in favor of Croft.
¶6We affirm these orders of the superior court but limit our holding to the facts of this case.
¶7The State advances three arguments in favor of reversing the superior court. First, it argues that the superior courtâs decision was based on an improper motive because its purpose was to penalize the state. An award of costs and attorneyâs fees is based on an improper motive if it is âdesigned for a purpose other than justly deserved compensation.â See Fairbanks Builders, Inc. v. Sandstrom Plumbing & Heating, Inc., 555 P.2d 964, 967 (Alaska 1976), cited in Tobeluk v. Lind, 589 P.2d 873, 878 (Alaska 1979). Clearly the superior courtâs purpose was to compensate Croft for actual costs and for the actual productive work of his attorney.
¶8Second, the State contends that the lower courtâs application of the public interest exception was improper and that Rule 82 fees should have been assessed against the losing plaintiffs rather than against the State.
¶9*798A decision under Rule 82 âis within the sound discretion of the trial court and is reviewable on appeal only where âthe trial courtâs determination was manifestly unreasonable, arbitrary or designed for a purpose other than justly deserved compensation.â â White v. Alaska Insurance Guaranty Association, 592 P.2d 367, 370 n.7 (Alaska 1979) (quoting Alaska State Bank v. General Insurance Co., 579 P.2d 1362, 1370 (Alaska 1978)). There is a presumption that attorneyâs fees will be awarded to a prevailing party under Rule 82(a). See, e. g., Stordahl v. Government Employees Insurance Co., 564 P.2d 63, 68 (Alaska 1977). Nevertheless, the superior courtâs decision that an assessment of attorneyâs fees against plaintiffs Hickel and Merdes would have been improper was not an abuse of discretion.
¶10In Gilbert v. State, 526 P.2d 1131, 1136 (Alaska 1974), this court held that âit is an abuse of discretion to award attorneyâs fees against a losing party who has in good faith raised a question of -genuine public interest before the courts.â
¶11It was not unreasonable for the superior court to find that the plaintiffs, exercising their rights under the election contest statute, AS 15.20.540, were public interest litigants against whom an assessment of attorneyâs fees would have been improper. Plaintiffs who in good faith seek to vindicate the strong public policy favoring fair and correctly conducted elections should not be penalized by an assessment of attorneyâs fees unless the suit is frivolous.
¶12Finally, the State argues that the superi- or court lacked authority to assess costs and attorneyâs fees against the State because it was a co-prevailing party.
¶13We agree that Rules 54(d) and 82(a) did not authorize the award of costs and attorneyâs fees in this case. Those rules authorize awards to âprevailing parties.â
¶14The superior courtâs award was justified, however, by reason of the inherent equitable power of the court to award attorneyâs fees when the interests of justice so require. This power has been discussed by the United States Supreme Court as follows:
Although the traditional American rule ordinarily disfavors the allowance of attorneysâ fees in the absence of statutory or contractual authorization, federal courts, in the exercise of their equitable powers, may award attorneysâ fees when the interests of justice so require. Indeed, the power to award such fees âis part of the original authority of the chancellor to do equity in a particular situation,â Sprague v. Ticonic National Bank, 307 U.S. 161, 166, 59 S.Ct. 777, 780, 83 L.Ed. 1184 (1939), and federal courts do not hesitate to exercise this inherent equitable power whenever âoverriding considerations indicate the need for such a recovery.â Mills v. Electric Auto-Lite Co., 396 U.S. 375, 391-392, 90 S.Ct. 616, 625, 24 L.Ed.2d 593 (1970); see Fleischmann Distilling Corp. v. Maier Brewing Co., 386 U.S. 714, 718, 87 S.Ct. 1404, 1407, 18 L.Ed.2d 475 (1967).
¶15Hall v. Cole, 412 U.S. 1, 4-5, 93 S.Ct. 1943, 1945-46, 36 L.Ed.2d 702, 707 (1973) (footnotes omitted).
¶16As our opinion in Hammmond v. Hickel reveals, this litigation was caused by the irregularities of state election officials in the conduct of the election. For example, 247 questioned ballots were misplaced by election officials and discovered in an unlocked cabinet in the Anchorage election office after the certification of the primary election nominees. We ordered that the ballots be counted and added to the totals of the various candidates. 588 P.2d at 262. We also held that âthe admitted mishandling of . .97 ballots constituted malconduct on the part of election officials, and the ballots should not have been included in the vote totals of the various candidates.â Id. at 263. Thirty-five absentee ballots were also counted illegally, and we directed that they not be counted. Id. at 269.
¶17Certain other irregularities were held not to justify a change in vote totals, but do further illustrate the stateâs responsibility for this litigation. Election officials violated the requirements of AS 15.20.690 regarding the handling of ballots in the event of a computer malfunction. Id. at 270. One hundred forty-one ballots were discarded rather than mailed to the lieutenant governor, as required by AS 15.15.370. We noted that this was âa significant deviation from the positive statutory duty placed upon the election board.â Id. at 261. Finally, the handling of 2,000 ballots by an election clerk â leaving them in his car overnight while it was parked at his residence â was held to be malconduct. Id. at 260-61.
¶18Croft properly acted as a defendant in the statutory election contest action because, as a winner in the primary, his interests were clearly adverse to those of the plaintiffs. It was the state, however, which was responsible for the conduct of the election. Because of this responsibility, the superior courtâs assessment of Croftâs costs and partial attorneyâs fees against the state served to prevent an injustice to Croft. This was an .exceptional case in which the court rules as to costs and fees did not adequately protect the interests of justice. The award was, therefore, within the inherent equitable power of the court.
¶19AFFIRMED.
¶20BURKE, J., dissents.
¶21. AS 15.20.540 provides:
A defeated candidate or 10 qualified voters may contest the nomination or election of any person or the approval or rejection of any question or proposition upon one or more of the following grounds: (1) malcon-duct, fraud, or corruption on the part of an election official sufficient to change the result of the election; (2) when the person certified as elected or nominated is not qualified as required by law; (3) any corrupt practice as defined by law sufficient to change the results of the election.
¶22. Gilbertheld that Civil Rule 82 fees could not be assessed against a losing party who had raised a genuine question of public interest in good faith. 526 P.2d at 1136.
¶23. The superior court stated that it was applying âthe general rationale of Malvo v. J. C. Penney Co., 512 P.2d 575, 587 (Alaska 1973), that the purpose of Civil Rule 82 is to partially compensate a prevailing party.â The court refused to award full attorneyâs fees.
¶24. The appropriateness of such an argument is at least questionable since Hickel and Merdes are not parties to this appeal. Appellantsâ logic may be that the assessment against the state was an abuse of discretion because it was based on a faulty premise, the allegedly faulty premise being that an assessment of attorneyâs *798fees against the plaintiffs would have been improper. As indicated, we find that premise correct.
¶25Appellants do not make this argument with respect to taxation of costs. Because they failed to so argue and because the plaintiffs are not parties to the appeal, we do not decide whether the superior court erred in not taxing costs against the plaintiffs. We note, however, that we have never applied a public interest exception to preclude taxation of costs against the losing party under Rule 54(d).
¶26. Accord, Crisp v. Kenai Peninsula Borough School District, 587 P.2d 1168 (Alaska 1978).
¶27. Specifically, Gilbertasserted that the state constitutionâs residency requirements for state senate candidates violated his federal equal protection rights. 526 P.2d at 1132.
¶28. Awards of costs are authorized by AS 09.60.-010 as follows:
Except as otherwise provided by statute, the supreme court shall determine by rule or order what costs, if any, including attorney fees, shall be allowed the prevailing party in any case.
¶29With respect to costs, Civil Rule 54(d) provides:
Except when express provision therefor is made either in a statute of the state or in these rules, costs shall be allowed as of course to the prevailing party unless the court otherwise directs. The procedure for the taxing of costs by the clerk and review of his action by the court shall be governed by Rule 79.
¶30Attorneyâs fees are governed by Rule 82, which provides in pertinent part:
(a) Allowance to Prevailing Party as Costs.
(1) Unless the court, in its discretion, otherwise directs, the following schedule of attorneyâs fees will be adhered to in fixing such fees for the party recovering any money judgment therein, as part of the costs of the action allowed by law:
Should no recovery be had, attorneyâs fees for the prevailing party may be fixed by the court as a part of the costs of the action, in its discretion in a reasonable amount.