opinion of the Court:
T1 VCS, Inc. claims it acquired a valid mechanic's lien on an Ogden subdivision by performing work as a general contractor. Utah Community Bank (UCB) claims an interest in the same Ogden subdivision, an interest it acquired by extending a construction loan-secured by a deed of trust-to the subdivision's owner.
12 This case involves a dispute over the validity of VCS's mechanic's lien as against UCB. VCS brought suit against UCB to vindicate VCS's allegedly superior interest in the subdivision property. UCB responded by asserting that VCS's mechanic's lien was not valid as against UCB's interest in the property because VCS had failed to record a timely lis pendens, as required under our mechanic's lien statutes. VCS claimed that its lien was valid as against UCB despite VCS's failure to record a timely lis pendens. VCS further claimed that even if its lien was invalid, it was entitled to equitable relief under the doctrine of unjust enrichment because UCB had aequired ownership of a number of the subdivision lots pursuant to a trustee's sale on its deed of trust.
T3 VCS and UCB filed cross-motions for summary judgment. The district court denied VCS's motion and granted UCB's, concluding that (a) VCS's mechanic's lien was void and unenforceable as against UCB because VCS had failed to record a timely iis pendens, (b) VCS was not entitled to unjust enrichment relief, and (c) UCB was entitled to recover attorney fees. VCS appealed.
T4 We affirm. VCS's failure to record a timely lis pendens rendered its mechanic's lien void and unenforceable as against UCB. And because VCS failed to apрropriately exhaust its legal remedies, VOS is not entitled to equitable relief under the doctrine of unjust enrichment. Consequently, we also affirm the district court's award of attorney fees to UCB under Utah Code section 38-1-18 and likewise conclude that UCB is entitled to its reasonable attorney fees incurred on appeal (in an amount to be determined on remand).
I
T5 Appellant VCS, Inc. was hired by La Salle Development, LLC in 2006 as the general contractor for the Northpark Meadows residential subdivision in Ogden, Utah. Although VCS and La Salle did not enter into a formal agreement until February 22, 2007, VCS began working on Northpark Meadows during the first week of November 2006.
T6 Appellee Utah Community Bank (UCB) acquired its initial interest in North-park Meadows soon thereafter when it extended a construction loan to La Salle, secured by a deed of trust. The deed of trust was dated January 9, 2007 and recorded January 12, 2007.
T7 After VCS began working on North-park Meadows, VCS took several steps designed to perfect its mechanic's lien. First, VCS filed a Notice of Commencement with the State Construction Registry on April 17, 2007. Later, after VCS was terminated by La Salle in September 2007,
18 VCS attempted to inform La Salle (but not UCB) that it had recorded this Notice of Mechanic's Lien. VCS also brought suit against La Salle (but not UCB), on March 12, 2008, but it did not record a lis pendens until April 24, 2009. This was 452 days after it first recorded its notice of mechanic's lien. VCS obtained a default judgment against La
19 On January 26, 2009, La Salle filed a motion to set aside the default judgment that had been entered against it.
T10 VCS moved for sammary judgment against UCB in April 2010, alleging that VCS had a mechanic's lien that was valid against UCB-such that the trustee's sale in favor of UCB should be set aside. Alternatively, VCS asserted that it was entitled to compensation because it had unjustly enriched UCB
II
T11 VCS asserts four grounds for challenging the district court's decision granting summary judgment for UCB: (1) VCS was not required by the mechanic's lien statute to record a lis pendens within 180 days of the Notice of Mechanic's Lien because UCB was eventually made a party to VCS's lien foreclosure suit; (2) VCS's suit against La Salle satisfied any statutory requirement for VCS to make UCB a party to the lien foreclosure action within 180 days; (8) VCS satisfied the substantial compliance provision of the statute; and (4) VCS is entitled to equitable relief under the doctrine of unjust enrichment.
112 We find no merit in any of these grounds. We accordingly affirm, under the de novo standard of review fоr summary Judgment. See L.C. Canyon Partners, L.L.C. v. Salt Lake Cnty.,
A
118 VCS's first argument rests on its proposed construction of Utah Code section
Within the time period provided for filing [a foreclosure action set forth] in Subsection (2) [i.e. within 180 days after the day on which the lien claimant files its Notice of Mechanic's Lien] the lien claimant shall file for record with the county recorder of each county in which the lien is recorded a notice of the pendency of the [foreclosure] action, in the manner provided in actions affecting the title or right to possession of real property, or the lien shall be void, except as to persons who have been made parties to the action and persоns having actual knowledge of the commencement of the action.
Utax § 38-1-11(8)(a).
{14 VCS characterizes this provision as consisting of a general rule and two exceptions. The general rule is that a lis pendens must be recorded within the 180-day window afforded for filing a mechanic's lien foreclosure action (i.e., within 180 days of the filing of the Notice of Mechanic's Lien). The exceptions apply where a person either (@a) is made a party to the foreclosure action, or (b) has actual knowledge of the commencement of that action. VCS's position rests on the notion that the 180-day time period applies to the general rule and not to the exceptions. Because UCB was eventually made a party to this action (though not within the 180-day period), VCS insists that it escapes the implications of the general timing rule under the first statutory exception.
115 We do not read the statute as VCS does. Section 11(8) does prescribe exceptions to a general rule. But those exceptions are not unattached to or outside the time-frame established by the general rule. Rather, the exceptions are subject to the 180-day time period. To be invoked, the conditions set forth in the exception must be satisfied within 180 days of the filing of the Notice of Mechanic's Lien.
116 The statutory text does not explicitly make the exceptions subject to the 180-day time period. Read in isolation, the conditions implicating the statutory exeeptions could be read without reference to the 180-day timeframe. We reject that reading, however, for a number of reasons.
{17 First, the text of the exception provisos does make express reference to some timeframe: They are implicated with respect to persons "who have been made parties to the action" and to persons "having actual knowledge" of the action. Id. (emphasis added). That formulation necessarily requires an answer to a timing question that is not expressly answered in the text-which is when a person must have been made a party and when a person must have actual knowledge. And given that the statute clearly implicates some timeframe, the most natural reading of the exceptions is that they incorporate the only timeframe set forth in the statute-which is the 180-day timeframe for both filing the foreclosure action and recording the lis pendens.
{18 Second, VCS's contrary view-that the timeframe for joinder of a party to the action or for knowledge of commencement of the action is unlimited-would effectively nullify the 180-day requirement set forth in the general rule. If we endorsed VCS's construction, a lien holder who failed to record a lis pendens within 180 days could routinely excuse its noncompliance by adding a party to a foreclosure action later on, or by simply informing such a person about the commencement of the suit. Such a result would allow the exceptions to swallow the 180-day requirement, and that outcome runs afoul of the settled canon of preserving independent meaning for all statutory provisions. See Labelle v. McKay Dee Hosp. Ctr.,
{19 Under VCS's contrary view there would be no such period of time, and so there would be no way to definitively determine whether a particular mechanic's lien claim was viable. The indeterminacy created by VCS's construction is incompatible with the certainty generated by the statute's multiple, sharp-cornered rules invalidating mechanic's lien claims because of failures to take actions that are statutorily required during the 180-day period following the filing of a Notice of Mechanic's Lien. We accordingly reject VCS's approach and interpret the exceptions in section 11(8)(a) to be subject to the 180-day timeframe in the general rule.
120 VCS protests that this construction fails to advance the purpose of the mechanic's lien statute, which in its view is to protect the interests of contractors performing labor on property. But that portrayal of the me-chanie's lien statute's purpose is a vast oversimplification. Like most legislation, our me-chanie's lien statute is not "aimed at advance-ing a singlе objective at the expense of all others," but instead is "a result of a legislative give-and-take that balances multiple concerns." Myers v. Myers,
[ 21 In any event, VCS's argument misper-ceives the judicial function in a field occupied by statute. In common law fields uneneum-bered by statute, the court performs a primary policymaking role. We balance competing social policies to arrive at the "best" common law rule as we рerceive it.
T 22 That role changes markedly when the legislature displaces our residual common-law authority with duly-enacted legislation. In that cireumstance, we are no longer tasked with advancing public policy as we see it. We instead must implement the particular balance of policies reflected in the terms of a statute.
$23 Thus, we could not properly acсept VCS's invitation to vindicate the purpose of the mechanic's lien statute as VCS sees it even if we accepted that purpose at face value. Where the language of the statute is clear, that language controls and cannot be overridden by a presumed statutory
B
{ 24 VCS next asserts that it perfected its lien vis-A-vis UCB by filing suit against Lo Salle within 180 days of filing its Notice of Mechanic's Lien. Specifically, although VCS failed to join UCB in its foreclosure action within 180 days, it nonetheless seeks to excuse that failure on the grounds that: (1) its amended complaint adding UCB should "relate back" to the date of its original complaint under rule 15(c) of the Utah Rules of Civil Procedurе; and/or (2) its claim against UCB was somehow preserved by bringing a timely foreclosure action against La Salle, under the rationale of Butterfield Lumber, Inc. v. Peterson Mortgage Corp.,
1
125 The "relation back" doctrine in rule 15(c) does not excuse VCS's failure to record a lis pendens because the doctrine's requirements are not satisfied. This doctrine invokes a constructive timing fiction with respect to certain amended pleadings. For amended claims arising out of the "conduct, transaction, or occurrence set forth or attempted to be set forth in the original pleading," the amended pleading "relates back to the date of the original pleading." Urax R. Civ. P. 15(c). The relation baсk rule, moreover, has been interpreted to extend not just to the parties to the original pleading but also to those who share an "identity of interest" with them.
T26 VCS asserts that its late-filed complaint against UCB should be treated as though it had been filed on the same date as the original complaint against La Salle. It fails to establish, however, that La Salle and UCB share an "identity of interest," and thus the relation back doctrine cannot exeuse its failure to join UCB within the timeframe required by statute.
T27 That conclusion is sustained by our decision in Perry v. Pioneer Wholesale Supply Co.,
28 Perry also explained why a contrаctual relationship was insufficient to create an identity of interest: "If any third-party action automatically related back to the date of filing of the original complaint, Rule 15(c) would become an all-encompassing rule that would eliminate all limitations on third-party actions." See Perry,
2
1 80 Butterfield Lumber likewise provides no support for VCS's position. Assuming without deciding the propriety of the decision, that case does not help VCS.
31 In Butterfield, a mechanic's lien claimant (Butterfield) mаde a third-party lender (Peterson Mortgage) a party to its lien foreclosure action but failed to record a timely lis pendens.
132 Thus, Buiterfield provides no help to VCS because it did not hold that a mechanic's lien action filed against one party would "stick" to all property held by that party and remain affixed even after that property was transferred to a third party.
133 VCS's invocation of Butterfield rests on an unstated-but incorrect-premise: that UCB was a constructive party to (or had constructive notice of) VCS's foreclosure suit against La Salle, thus satisfying one of the exceptions to the lis pendens requirеment under section 88-1-11(8)(a). But section 38-1-11(8)(a) unequivocally provides that a lis pendens must be recorded or the "lien shall be void, except as to persons who have been made parties to the action and persons having actual knowledge of the commencement of the action." Utan Cope § 38-1-11(8)(a) (emphases added). And the statute leaves no room for constructive addition of parties to the action or for attaching a mechanic's lien to a transferred piece of property on the basis of constructive knowledge. Instead, it adopts a bright-line rule that invalidates such liens if no timely lis pendens is recorded, unless a party is either added to a foreclo
134 VCS's reading would undermine the importance of the lis pendens recording requirement. Third party lenders would never be able to take property free of a mechanic's lien claim where a mechanic's lien foreclosure action against the property owner was pending, even though no lis pendens had been recorded and these lenders had not been made parties to the action and had no knowledge of it. After all, it could always be said that these lenders-by foreclosing on their deeds of trust-acquired their interest "through" the original property owner (who was a party to the original mechanic's lien foreclosure suit). This result is incompatible with the statute's central focus on the requirement of a lis pendens. There is no room for these types of "constructive party" or "constructive notice" doctrines under seetion 38-1-11(8)(a).
C
1385 VCS next seeks to sustain its untimely lis pendens under the "substantial compliance" standard in section 38-1-7(2)(b) of the statute. Urax § 38-1-7(2)(b) (2010) ("Substantial compliance with the requirements of this chapter is sufficient to hоld and claim a lien."). Though the recording may have been untimely, VCS views that defect as insignificant. And it highlights the other actions it took to comply with the requirements of the statute, concluding that the failure to record a timely lis pendens is a mere technicality and that its compliance was otherwise "substantial."
[36 We do not see it that way. Compliance with a few-or even many-provisions of a detailed statutory scheme is not the measure of substantial compliance. And just because a statute is detailed does not automatically transform its individual requirements into immaterial technicalities. Rather, this court has adopted a rather strict notion of substantial compliance. Our cases refuse to condone the failure to comply with an "express command of the statute," Eccles Lumber Co. v. Martin,
137 Thus, the substantiality of a person's compliance is measured by its potential for harm or prejudice. A defect in compliance may be excused as insubstantial if it cannot have any meaningful impact on other parties. See Grazer v. Jones,
138 Our decision in Projects Unlimited is consistent with this standard of substantiality. There we excused a party's noncompliance with technical elements of the mechanic's lien statute's requirement that a "notice of intention to hold and claim a lien" be "verified by the oath ... of some ... person." Projects Unlimited,
139 VCS's compliance was not "substantial." The lis pendens requirement is an express statutory command, and one clearly implicating a potential for prejudice or harm. A lis pendens puts the world on notice that an action has been commenced to foreclose a mechanic's lien claim. This filing requirement thereby promotes clear notice, finality, and the alienability of real property. Cf. First Sec. Mortg. Co. v. Hansen,
D
140 VCS's final bid to excuse its failure to record a lis pendens is its invocation of the equitable doctrine of unjust enrichment. This claim rests on the assertion that UCB was unjustly enriched by the value of the work VCS performed on Northpark Meadows.
141 We reject this claim on exhaustion grounds. A party invoking equity is generally required to first "exhaust any legal remedies available."
T42 In the mechanic's lien context, the legal remedies that must be pursued to unlock equitable claims like unjust enrichment include those available under our mechanic's lien statutes.
43 Application of the exhaustion requirement here serves an important purpose. The requirement ensures that the calibrated policies balanced in our legal rules are not upended. This rationale is important even where the source of legal doctrine is the common law. Its importance is further heightened where a statute is involved.
{44 Opening the door to unjust enrichment relief for VCS would give it nearly the same remedy as the one it would have been entitled to if it had complied with the mechanic's lien statute. But because VCS did not properly comply with this statute, affording such a remedy here would threaten the balance struck by our legislature in weighing the competing policies at stake in mechanic's lien cases. Supra ¶ 20. That threat is particularly problematic in the statutory realm given the legislature's policymaking prerogative and direct accountability to the people. We are in no position to second-guess the judgment it reached in enacting the mechanics lien statute, and thus affirm on the ground that VCS is not entitled to unjust enrichment relief.
III
€ 45 For the above reasons, we affirm the district court's grant of summary judgment in UCB's favor, including its award of attorney fees to UCB under Utah Code section 38-1-18 (2010). Because we also conclude that UCB is entitled to its attorney fees reasonably incurred on appeal, we remand to the district court for a determination of this amount.
Notes
. In April 2007, VCS and UCB entered into a written аgreement providing that VCS would continue to act as the general contractor for the Northpark Meadows project even if La Salle failed to fulfill its obligations. VCS never performed under this agreement because VCS was terminated in September 2007. VCS nevertheless claims that this agreement is relevant to its claim of unjust enrichment.
. UCB asserts, and VCS concedes, that this letter was the earliest evidence before the district court indicating that UCB had actual knowledge of the commencement of VCS's action against La Salle.
. This motion was based on La Salle's assertion that it had not been properly served with process. La Salle's registered agent was a CPA who had no other affiliation with La Salle. Process was served by leaving a copy of the summons and complaint with his receptionist. The CPA allegedly never received the summons and complaint. La Salle did not receive them.
. This amended complaint also included claims against American West Bank. Subsequently, the Federal Deposit Insurance Corporation (FDIC) became the receiver for American West Bank, and thus the real party in interest in this proceeding. The FDIC is not a party to this appeal, however, because VCS subsequently moved to dismiss its appeal against the FDIC with prejudice. We granted that motion in an order dated August 17, 2011. Thus, for purposes of appeal, the relevant dispute is between UCB and VCS only.
. UCB alsо moved for summary judgment against La Salle. But La Salle did not respond. Given that we ultimately find UCB's interest in Northpark Meadows to be superior to VCS's, we need not determine whether VCS's interest in the property is paramount to La Salle's.
. UCB also argues that we should reinstate the district court's original default judgment against La Salle because La Salle was properly served with process. We do not reach this argument, however, because we conclude that VCS's mechanic's lien is not valid as against UCB-a decision that moots any question of VCS's lien priority in relation to other third parties.
. Unless otherwise noted, all textual references to section 38-1-11 in this opinion refer to the version in place in 2010.
. See Projects Unlimited, Inc. v. Copper State Thrift & Loan Co.,
. See, e.g., Johnson v. Rogers,
. McArthur v. State Farm Mut. Auto. Ins. Co.,
. See Perry v. Pioneer Wholesale Supply Co.,
. Having concluded that Butterfield does not help VCS, we need not reach its speculative contention that Interlake Distributors, Inc. v. Old Mill Towne,
. This is not undisputed. UCB asserts that "UCB actually obtained fee title to [Northpark Meadows] from the successor trustee under its deed of trust by purchasing the Property at a trustee's sale. In no sense did UCB obtain ownership from La Salle."
. See also Chase v. Dawson,
. VCS claims that it gave "UCB actual notice of the pendency of its lien foreclosure action, and named Defendant UCB as a party to the action" at a time that was "[wlell in advance of ... UCB's acquisition of an interest in the property." But UCB acquired its initial interest in the property at the time it recorded its deed of trust, in January 2007, so VCS's assertion that UCB could not have been prejudiced by its failure to record a timely lis pendens because UCB did not yet have аn interest in the property is factually incorrect. See Capital Assets Fin. Servs. v. Maxwell,
. See Commercial Fixtures & Furnishings, Inc. v. Adams,
. See Commercial Fixtures & Furnishings, Inc.,
