Appellants, McCarthy Brothers Company and McCarthy Western Constructors, Inc., doing business as and also known as McCarthy Corporation, McCarthy Construction, and McCarthy, 1 appeal the district court’s grant of summary judgment in favor of appellees, Continental Lloyds Insurance Company (“CLIC”), American Casualty Company of Reading, Pennsylvania (“ACC”), and Mike Wilson. 2 McCarthy *727 complains on appeal that the district court erred in ruling that McCarthy was not insured under commercial general liability policies issued by the insurance companies to subcontractors working for McCarthy even though these policies named McCarthy, the general contractor, as an additional insured. McCarthy further claims that the district court erred by failing to award McCarthy attorney’s fees. We will reverse the district court’s judgment insofar as it relates to coverage and render judgment in favor of McCarthy. We will affirm the judgment in all other respects.
FACTUAL AND PROCEDURAL BACKGROUND
McCarthy, a general contractor, hired Crouch/Fisk Electric Company and Crouch Electric Company 3 to provide electrical services for a Motorola construction project McCarthy was managing. Crouch/Fisk and Crouch Electric purchased separate commercial general liability insurance policies for this project (the “policies”) from CLIC and ACC respectively. McCarthy was added to both policies by endorsement as an additional insured (“additional-insured endorsements”). 4
During construction, Mike Wilson, an electrical foreman for Crouch, was injured when he slipped and fell at the construction site. Wilson sued McCarthy for negligence arising out of its duty of care owed to him as a business invitee (the “Wilson suit”). Wilson alleged that the electricians on the construction site were required to traverse a fifty-five to sixty foot incline to retrieve electrical equipment “necessary for their work” and that at the time of the accident, he was descending the incline and “fell on the muddy, slippery surface.” Wilson asserted that this incline was unreasonably dangerous and that McCarthy knew or should have known of its condition because Wilson, as well as supervisors from Crouch, had requested that McCarthy place stairs in that area.
Pursuant to the additional-insured endorsements, McCarthy demanded a defense by the insurance companies in the Wilson suit. The insurance companies, asserting that these provisions did not cover the liability arising out of the Wilson suit, denied McCarthy’s request. McCarthy then brought this suit in district court seeking a declaratory judgment that the insurance companies had a duty to defend it in the Wilson suit and for attorney’s fees, damages, and court costs. The insurance companies counterclaimed for declaratory relief that McCarthy is not an insured covered by the policies and for attorney’s fees and court costs.
Both parties moved for summary judgment 5 on the ground that Wilson’s pleadings, read in the light of the additional-insured endorsements, determined as a matter of law whether the insurance companies had a duty to defend McCarthy pursuant to the policies. The insurance companies assert that McCarthy is not covered under the endorsements because the allegations in the Wilson suit allege negligence only on the part of McCarthy and not on the part of Crouch, and thus the liability in this case did not arise out of Crouch’s work for McCarthy. McCarthy, on the other hand, urges that it is covered by the policies. McCarthy reasons that because Wilson’s injuries were sustained while working on the Motorola construction site for Crouch, which was *728 performing work on behalf of McCarthy, the underlying liability arose from work or operations of Crouch by or for McCarthy. The district court rendered a final summary judgment, granting the insurance companies’ motion and denying McCarthy’s. 6 McCarthy appeals the district-court judgment.
DISCUSSION
The resolution of the summary-judgment motions rests on the proper interpretation of the additional-insured endorsements, a question of law.
See Admiral Ins. Co. v. Trident NGL, Inc.,
To determine an insurer’s duty to defend, Texas courts follow the “eight corners” rule.
See National Union Fire Ins. Co. v. Merchants Fast Motor Lines,
939 5.W.2d 139, 141 (Tex.1997);
Texas Property & Cas. Ins. Guar. Ass’n v. Southwest Aggregates, Inc.,
Insurance policies are contracts, and their construction is governed by the same rules of construction applicable to all contracts.
See Balandran v. Safeco Ins. Co. of Am.,
*729
A written contract that can be given a definite or certain legal meaning is not ambiguous.
See National Union,
Construction of the Additional-Insured Endorsements
The parties join issue over the meaning of the term “arising out of’ as used in defining McCarthy’s coverage as an additional insured. In its first two issues, McCarthy contends that the contract can be given a certain and definite meaning affording coverage, or at least is ambiguous and should therefore be construed in its favor. We agree.
The supreme court has recently given a broad construction to the phrase “arising out of’ in a case involving the construction of an automobile policy.
See Mid-Century Ins. Co. v. Lindsey,
The First Court of Appeals recently considered “arising out of’ language in the context of an additional-insured provision.
See Admiral,
[F]or liability to ‘arise out of operations’ of a named insured it is not necessary for the named insured’s acts to have ‘caused’ the accident; rather it is sufficient that the named insured’s employee was injured while present at the scene in connection with performing the named insured’s business, even if the cause of the injury was the negligence of the additional insured.
Id. at 454.
This construction is in harmony with interpretations given to “arising out of’ by courts in various jurisdictions.
See, e.g., Merchants Ins. Co. v. United States Fidelity & Guar. Co.,
Wilson alleges in the underlying suit that he was working on the premises of Motorola for Crouch as an electrical foreman. To retrieve “tools and supplies necessary for their work,” the electricians on the site had to traverse an incline of approximately fifty-five to sixty feet. As he was walking down this incline to go to the equipment trailer, Wilson “fell on the muddy, slippery surface.” These allegations show that walking down the incline to get tools to perform its job was an integral part of Crouch’s work for McCarthy. Thus, the accident occurred while Wilson was on the construction site for the purpose of carrying out Crouch’s contract with McCarthy. There was more than a mere locational relationship between the injury and Wilson’s presence on the site. Wilson’s injury occurred while he was carrying out a necessary part of his job for Crouch. Therefore, there is a causal connection between Wilson’s injury and Crouch’s performance of its work for McCarthy and the liability “arose out of’ Crouch’s work for McCarthy.
The insurance companies offer a competing interpretation for the phrase “arising out of’ that they claim is equally reasonable and thus creates an ambiguity. Their interpretation would limit the interpretation of “arising out of’ to mean coming directly from; i.e., for liability to arise out of Crouch’s work for McCarthy, the liability must stem directly from Crouch’s negligence and cannot extend to negligence caused solely by McCarthy. Post- Lindsey, however, such a restrictive interpretation no longer appears reasonable in Texas and cannot be used to create ambiguity. 9 However, were we to consider the *731 phrase “arising out of’ ambiguous, we would apply the familiar rules that construe the policy against the insurer and reach the same result.
Accordingly, we reverse the district court’s judgment and render judgment that McCarthy was covered by the additional-insured endorsements provided in the policies and was entitled to a defense under the policies.
Attorney’s Fees
McCarthy asserts in its final issue that the district court abused his discretion by denying its request for attorney’s fees.
See
Tex. Civ. Prac. & Rem.Code Ann. § 37.009 (West 1997) (trial court may award “necessary attorney’s fees as are equitable and just”). “A prevailing party in a declaratory judgment action is not entitled to attorney’s fees simply as a matter of law; entitlement depends upon what is equitable and just and the trial judge’s power is in that respect discretionary.”
Unified Loans, Inc. v. Pettijohn,
McCarthy initiated these proceedings seeking a declaration that the insurance companies were obligated to provide it a defense in the Wilson suit. The insurance companies responded and sought a declaration that they were not so obliged. Both parties sought attorney’s fees. Although the district court ruled in favor of the insurance companies, he specifically denied them attorney’s fees. The district court’s judgment states “that the parties shall each bear their own attorneyfs] fees.” The record does not reflect the reason for the district court’s ruling. The district court may have felt that both McCarthy and the insurance companies had legitimate rights to pursue and both should thus bear their own attorney’s fees. We conclude that the district court did not act arbitrarily and unreasonably in ruling that each party should be responsible for its own attorney’s fees.
We therefore overrule McCarthy’s third issue.
CONCLUSION
We hold that McCarthy is covered by the additional-insured endorsements in the policies issued by the insurance companies and is entitled to a defense from them in Wilson’s suit against McCarthy. We therefore reverse the district-court judgment in part and render judgment that McCarthy is covered under the policies in this case. In all other respects, we affirm the judgment of the district court.
Notes
. McCarthy Brothers Company and McCarthy Western Constructors, Inc. are affiliated corporations; we will use their own designation, “McCarthy,” when we refer jointly to both entities.
. For convenience, we will refer to CLIC and ACC collectively as the "insurance companies.”
. We will refer to the subcontractors collectively as “Crouch."
. The CLIC additional-insured endorsement states: "WHO IS AN INSURED ... the person or organization shown in the Schedule [McCarthy], but only with respect to liability arising out of "your work" [Crouch's] for that insured [McCarthy] by or for you [Crouch].” (Emphasis added.)
The ACC endorsement provides in pertinent part: "The insurance provided to the additional insured is limited as follows: 1. That person or organization [McCarthy] is only an additional insured with respect to liability arising out of: ... b. 'Your work’ for that additional insured [McCarthy] by or for you [Crouch].” (Emphasis added.)
.McCarthy moved for partial summary judgment.
. The court also denied the relief sought by McCarthy, ordered McCarthy to reimburse the appellee’s taxable court costs, and ordered all parties to bear their own attorney’s fees.
.
See also McIntosh v. Scottsdale Ins. Co.,
. For examples of other cases finding coverage for the additional insured’s own negligence, see
Saavedra v. Murphy Oil U.S.A., Inc.,
. In
Granite Construction Co. v. Bituminous Insurance Co.,
