Roger A. Lamp, a former employee of American Prosthetics, Inc., brought a declaratory judgment action to resolve the question of the enforceability of a restrictive covenant in his employment contract. The district court held the covenant was unenforceable and, on appeal, the court of appeals affirmed. On further review, we also affirm.
Lamp’s contract of employment, as manager of American Prosthetics’ Mason City *910 office, contained a covenant not to compete with the employer within 100 miles of any of its Iowa offices. Because of the relatively large number of offices in Iowa, the practical effect of the covenant was to prohibit competition in virtually the whole state. Lamp was discharged by American Prosthetics and immediately opened up a prosthetics business in the same building in which he had previously managed the business for his former employer. It is undisputed that, in his new venture, Lamp drew on the education and experience gained through his employment with American Prosthetics and actually serviced some of its former customers. American Prosthet-ics claimed a reduction in its Mason City business of approximately fifty percent.
Because this case was tried in equity, our review is de novo. Iowa R.App.P. 4. In deciding whether to enforce a restrictive covenant, the court will apply a three-pronged test: (1) Is the restriction reasonably necessary for the protection of the employer’s business; (2) is it unreasonably restrictive of the employee’s rights; and (3) is it prejudicial to the public interest?
See Iowa Glass Depot, Inc. v. Jindrich,
American Prosthetics argues that the restrictive covenant was enforceable as written. It has an alternative argument, however, that, in the event the court should find the restrictive covenant to be too broad to be enforced, it could modify it to allow partial enforcement. In presenting this argument, it relies on the
Ehlers
case, which first adopted that approach, and on
Farm Bureau Service Co. of Maynard v. Kohls,
In
Ehlers
this court, in effect, overruled a line of prior Iowa cases which had held that a covenant which was too restrictive to be enforced could not be modified to salvage the enforceable provisions.
The court may not rewrite the contract for the purpose of accomplishing that which, in its opinion, may appear proper, or, on general principles of abstract justice, or under the rule of liberal construction, make for the parties a contract which they did not make for themselves, or make for them a better contract than they chose, or saw fit, to make for themselves, or remake a contract, under the guise of construction, because it later appears that a different agreement should have been consummated in the first instance, or in order to meet special circumstances or contingencies against which the parties have not protected themselves.
Id.
at 172,
The district court in the present case held the covenant was too broad to be enforced as written. It did not attempt to modify it. The court of appeals took the same approach. It held the agreement was too restrictive to be enforced. It did not address the issue of modification, although it was raised by American Prosthetics on appeal.
On further review to this court, American Prosthetics argues that this was error; *911 it argues that, if the court found the covenant to be too broad, it must, under Ehlers and its progeny, decide whether it was enforceable to any extent. It argues that, if the agreement is found to be overly broad by covering all American Prosthet-ics’ offices in the state of Iowa, nevertheless a restrictive covenant prohibiting competition by Lamp, within a certain radius of Mason City, would be reasonable. The covenant, it argues, should at least be enforced to that extent.
We agree with the district court, and the court of appeals, that the restrictive covenant swept too broadly to be enforced as written. The evidence does not show such an extensive restriction is reasonably necessary to protect American Prosthetics. See 6A Corbin on Contracts § 1394, at 94-97 (1962).
The issue remains, however, whether we should enforce the covenant, as requested by American Prosthetics, to the extent it is not unreasonable. The problem with this approach is that, while Ehlers allows for modification of such agreements, it does not require a court to do so sua sponte. The issue of partial enforcement was never raised by the pleadings in district court, although it was mentioned in a trial court brief. Following an adverse ruling by the district court in which the issue was not addressed, American Pros-thetics simply filed a notice of appeal. It did not file a motion under Iowa Rule of Civil Procedure 179(b) to bring the issue to the court’s attention.
In State Farm Mutual Auto Insurance Co. v. Pflibsen, we said:
It is well settled that a rule 179(b) motion is essential to preservation of error when a trial court fails to resolve an issue, claim, defense, or legal theory properly submitted to it for adjudication. Consequently, none of those separate issues are properly before us for decision. Issues must ordinarily be presented to and passed upon by the trial court before they may be raised and decided on appeal.
Courts are naturally reluctant to remake contracts,
see Ehlers,
In the face of these principles, a court must necessarily approach the issue of modification with a certain degree of reluctance. We believe in this case that, where the issue was not properly raised in district court, we should not address it for the first time on appeal.
Shill v. Careage Corp.,
DECISION OF COURT OF APPEALS AND JUDGMENT OF DISTRICT COURT AFFIRMED.
