This is an action for a declaratory judgment brought by the United Services Automobile Association against Lyle Q. Hills and Allstate Insurance Company. The trial court found for the defendant Hills and against United Services Automobile Association. The latter has appealed.
For convenience we shall refer to the plaintiff as United, to the defendant Lyle Q. Hills as Hills, and to Allstate Insurance Company as Allstate. The controlling facts are not in dispute, although there are variations in the evidence that do not appear material to the decision of the case.
Albert E. Dawson was the owner of an automobile which United had insured against loss caused by collision by a $50 deductible policy. On April 1, 1957, a loss occurred while the automobile was being operated by the wife of Dawson. United employed the Crocker Claims Service to adjust the claim. One Welch, an employee of Crocker, adjusted the claim and paid for Dawson on behalf of United the sum of $454.93, the *130same being the amount of the damage less $50. In the proof of loss executed by Dawson the latter agreed with United that in case of recovery for the damage from a third person United would be subrogated, that Dawson would permit suit in his name by United, and that he would cooperate and give all reasonable assistance in the enforcement of its right of subrogation. There was no assignment of any part of Dawson’s claim to United.
After the accident Dawson and his wife retained Hills, an attorney, to represent them in an action against one Yanovich, the driver, and one Miller, the owner of the other car involved in the accident. Hills investigated the facts preparatory to legal action. He interviewed Welch as to the results of his investigation, informed him of his intention to sue, inquired if United desired him to handle its subrogation claim, and informed Welch of his fee arrangement with Dawson. Welch advised Hills that he would inquire of United as to its wishes as he was without authority to act in the matter. Hills heard nothing further from Welch or United and commenced the action against Miller in June or July 1957. On December 5, 1957, Welch advised Hills by letter, at the instance of United, to delete the subrogation claim of United from his cause of action. Hills advised that the cause of action was Dawson’s and could not be split, and proceeded with negotiations for settlement then pending. See Shiman Bros. & Co. v. Nebraska Nat. Hotel Co., 143 Neb. 404, 9 N. W. 2d 807; Dixon v. Coffey, 161 Neb. 487, 73 N. W. 2d 660; Hayward v. State Farm Mut. Automobile Ins. Co., 212 Minn. 500, 4 N. W. 2d 316, 140 A. L. R. 1236.
Allstate had issued a policy of insurance on Miller’s automobile, insuring against public liability. After the action was commenced a settlement was negotiated between Allstate and Dawsons in the amount of $3,500. It is undisputed in this record that United had advised Allstate and Hills as attorney for the Dawsons of its right of subrogation and Allstate had informed United *131that if and when a settlement was made with the Dawsons it would protect the subrogation rights of United.
When the $3,500 was ready for payment, Hills requested Allstate’s attorney to issue two drafts, one for $454.93 payable to United and Hills and one for $3,045.07 payable to the Dawsons and Hills. This was done by agreement, as a matter of convenience, to permit the Dawsons to get their money promptly. Allstate, having notice of the amount of United’s subrogation claim, protected it as agreed, by including United as a copayee with Hills on a draft for the amount of United’s claim. Hills claims 33% percent of the draft for $454.93 as an attorney’s fee pursuant to fee arrangement with the Dawsons. The only issue before the court is the interest of Hills, if any, in the draft for $454.93.
We point out that ordinarily an insurance carrier such as Allstate would have adequately protected itself against the claims of others to the fund by issuing one draft for the full amount of the settlement and making all persons known to have an interest in the fund co-payees therein. In the instant case the fund, by mutual agreement, was paid by two drafts by which the rights of all claimants were protected. The rights of the parties remain the same as if the whole amount were in one draft with all claimants listed as payees therein. When the present issue arose between United and Hills, this case was commenced by United against Hills and Allstate to have the rights of the parties determined. Allstate alleged that it had no interest in the litigation, asserted that it was in the position of a stakeholder, paid the $454.93 into court, and was dismissed from the case, in accordance with a stipulation of the parties.
A party may resort to a declaratory judgment proceeding whether it be an action in law or equity. In such a proceeding, where a question of fact is involved, such issue may be tried and determined in the same manner as issues of fact in other civil actions. § 25-21.157, R. R. S. 1943.
*132The present action is one of interpleader. Allstate as a defendant was authorized to interplead under the provisions of section 25-325, R. R. S. 1943. Farming Corp. v. Bridgeport Bank, 113 Neb. 323, 202 N. W. 911. It was dismissed from the litigation by stipulation of the parties. No irregularities are asserted or are available by virtue of the stipulation. The right to interplead and have the interests of the adverse parties determined in a fund held by a stakeholder is an equitable proceeding and will be so treated on this appeal. Provident Savings & Loan Assn. v. Booth, 138 Neb. 424, 293 N. W. 293.
It is the contention of United that Hills, standing in the shoes of the Dawsons to the extent of his claim, has no employment relation with United and cannot therefore recover from United. It cannot be questioned that Hills was not employed by United either expressly or impliedly. Ordinarily the right of a lawyer to compensation for his services depends upon a contract of employment, express or implied. But there are exceptions to this general rule. One exception is stated in a well-known text as follows: “An attorney who renders services in recovering or preserving a fund, in which a number of persons are interested, may in equity be allowed his compensation out of the whole fund, only where his services are rendered on behalf of, and are a benefit to, the common fund.” 7 C. J. S., Attorney and Client, § 193 b (2), p. 1098. And it is stated in the same section “and the mere fact that some of the persons interested have employed counsel and opposed the suit which has benefited them, will not prevent their interests from being subjected to the payment of reasonable compensation to counsel who has succeeded in recovering or preserving the fund which is brought into the custody of the court.” See, also, Blacker v. Kitchen Bros. Hotel Co., 133 Neb. 66, 273 N. W. 836; Gamboni v. County of Otoe, 159 Neb. 417, 67 N. W. 2d 489; Summerville v. North Platte Valley Weather Control Disk, 171 Neb. 695, 107 N. W. 2d 425. While the foregoing cases *133do not sustain the claim of Hills, they do announce the underlying principle that does sustain it.
The applicable rule is that where the holder of the subrogation right does not come into the action, whether he refuses to do so or acquiesces in the plaintiff’s action, but accepts the avails of the litigation, he should be subjected to his proportionate share of the expenses thereof, including attorney’s fees. In the early case of Newcomb v. Cincinnati Ins. Co., 22 Ohio St. 382, 10 Am. R. 746, the rule was stated as follows: “Where the assured, as in case of partial insurance, sustains a loss, in excess of the reimbursement or compensation by the underwriter, he has an undoubted right to have it satisfied by action against the wrong-doer. But if, by such action, there comes into his hands, any sum for which, in equity and good conscience, he ought to account to the underwriter, reimbursement will, to that extent, be compelled in an action by the latter, based on his right in equity to subrogation. But the assured will not, in the forum of conscience, be required to account for more than the surplus, which may remain in his hands, after satisfying his own excess of loss in full, and his reasonable expenses incurred in its recovery; unless the underwriter shall, on notice and opportunity given, have contributed to, and made common cause with him, in the prosecution.” See, also, Svea Assurance Co. v. Packham, 92 Md. 464, 48 A. 359, 52 L. R. A. 95; Washtenaw Mut. Fire Ins. Co. v. Budd, 208 Mich, 483, 175 N. W. 231; Shawnee Fire Ins. Co. v. Cosgrove, 85 Kan. 296, 116 P. 819, 41 L. R. A. N. S. 719; Camden Fire Ins. Co. v. Missouri, K. & T. Ry. Co. (Tex. Civ. App.), 175 S. W. 816; Annotation, 36 A. L. R. 1267.
In the last case above cited, the insurer, after having through its agents agreed to pay a loss caused by a fire covered by an insurance policy, reserving the right to be subrogated to the rights of the insured against third persons causing the loss, thereafter refused to pay the insurance. The insured commenced suit on the *134policy, and. later he instituted suit against the railroad causing the loss, recovering judgment in both cases. It was held that, inasmuch as the insurance company failed to make or offered to make, itself a party to the suit against the railroad company, or in any manner to assist in the prosecution, or contribute towards the expense thereof, although having full knowledge of its pendency and object, the insured would not be required to account for more than the surplus remaining in hisi hands after satisfying his loss in full and his reasonable expenses incurred in the recovery. The rule clearly applies to the instant case.
United contends, however, that the foregoing rule does not apply where the insured is informed that its subrogation claim is not to be included in the litigation and it indicates an intention to pursue the enforcement of its right of subrogation in some other manner. It seems clear to us, however, that whatever intentions United may have had prior to the commencement of the present action, they were abandoned when it elected to pursue its general equitable right of subrogation against the avails of the settlement established by the efforts of the Dawsons and Hills. In other words, when United abandoned its previous hostile position and elected to seek the collection of its claim from the avails of the litigation and settlement secured solely by the efforts of the Dawsons and Hills, it brought itself squarely within the cited authorities. Under such situation, justice and equity require that United pay its proportionate share of the expenses, including attorney’s fees, incurred by the Dawsons and Hills in establishing the fund from which United seeks to benefit.
It is contended by Hills that he is entitled to the allowance of an attorney’s fee against United in the district court and in this court under the provisions of section 25-1801, R. R. S. 1943. The trial court denied an attorney’s fee in that court and Hills has cross-appealed, asserting that the trial court erred in so doing. We point *135out that the claim of Hills for 33% percent of the $454.93 paid into court was a claim against the fund for expenses and not a claim against United for an attorney’s fee. It is not a claim against a person, partnership, association, or corporation within the purview of the statute. The trial court properly denied the allowance of an attorney’s fee as a part of the costs. There is no merit in the cross-appeal. This court likewise denies an attorney’s fee for services rendered in this court.
No question of pleading or parties is raised by this appeal. Under our system of code pleading, a pleading is required to contain a statement of the facts in ordinary and concise language. §§ 25-804 and 25-811, R. R. S. 1943. It is the facts well pleaded that determine the nature of the action and the relief to be granted. The rule has been stated by this court as follows: “It is a long-established rule that a court of equity which has obtained jurisdiction for any purpose will retain jurisdiction for the purpose of administering complete relief between the parties with respect to the subject-matter.” Gibson v. Koutsky-Brennan-Vana Co., 143 Neb. 326, 9 N. W. 2d 298. The pleaded facts and evidence sustain the prayer of Hills’ cross-petition. The district court so found. The judgment rendered is correct and it is affirmed.
Affirmed.
Wenice, J., not participating.