The plaintiff’s petition contained tw» counts. The first was on a written contract, whereby the plaintiff agreed to furnish certain materials and erect for defendants certain parts of a mining and pumping plant, to be completed in forty working days, provided plaintiff was not delayed by rain, or in getting timbers, stone and materials, for all of which defendants were to “pay plaintiff $1,600 in cash, after said plant had been connected up and run for five days. ’ ’
The other was in form indebitatus assumpsit to recover on quantum meruit.
The answer was a general denial, supplemented with a counterclaim for damages resulting from certain alleged breaches of the contract by the plaintiff.
At the trial, on the conclusion of the plaintiff’s evidence, the court, at the request of defendants, gave *616an instruction in the nature of a demurrer, and thereupon the plaintiff suffered a nonsuit, and after an •unsuccessful motion to set the same aside, appealed.
The contract was dated April 24, 1893. The evidence tends to show that it was completed in the latter part of July. This suit was begun August 19. Between the completion of the work and the bringing of the suit, the defendants erected a building over and around the plant and locked the doors thereof. The plant was not run five days before the suit was brought, though there was some evidence adduced which tended to prove that this was occasioned by the fault of the defendants, in not making certain connections with the pumps and in not furnishing steam. It may be that the court did not err in holding, in effect, that the plaintiff’s action on the contract was prematurely brought; but since this action of the court in this regard is not assigned'as one of the grounds of error, we shall pass it by without further notice and proceed to the consideration of the only question discussed in the briefs of counsel, namely, whether the plaintiff was entitled to a submission of the case to the jury, on the evidence adduced in support of the second count in the petition.
It has been repeatedly declared by-the supervisory courts of this state, that where there is a special contract for materials to be furnished and work to be done, before the contractor can recover on the contract, he must show a substantial compliance with its terms in every essential particular. Yet, where, as in case of building contracts, or for improvements and repairs, the services rendered and the building erected, or improvements made, are of some value to him for whom they were performed, and he has kept and used them, although the thing done may not be such as the contract requires, the contractor may, nevertheless, recover what it is reasonably worth to the owner of the *617premises, not exceeding the contract price, after deducting any damages reasonably and approximately resulting fronrthe breach of contract. Austin v. Keating, 21 Mo. App. 30; Smith v. Coal Co., 36 Mo. App. 567; Halpin Mfg. Co. v. School District, 54 Mo. App. 376; Globe L. & H. Co. v. Doud, 47 Mo. App. 439; Yeats v. Ballentine, 56 Mo. 530; Williams v. Railroad, 112 Mo. 49; Moote v. Mfg. Co., 113 Mo. 98. The ground upon which courts have allowed a recovery on quantum meruit is because the materials furnished, or the work done, is of value to the proprietor. Austin v. Keating, supra, 35.
The question, therefore, is: Was there any substantial evidence adduced which tended to prove that the defendants kept and used the parts of the mining and pumping plant put in by the plaintiff, under circumstances from which the law will raise the implication of acceptance, creating an obligation to pay the reasonable value of the materials furnished and the work done. There was some evidence adduced tending to show that after the. plaintiff furnished materials and performed the work on the said mining and pumping plant, the defendants, as previously stated, erected a frame building around and over it, and still later on made the necessary connections and used and operated the entire plant, and had been so doing for several months prior to the trial of this case. And whether the materials were furnished and the work done in every particular as required by the terms of the contract, does not affect the plaintiff’s right of recovery on a quantum meruit.
If there is any substantial evidence tending to prove that the materials and the work were of any value to defendants, and that they kept and used the same under circumstances from which the law will raise the implication of acceptance thereof, then defendants were bound to pay plaintiff what the same was reasonably *618worth, deducting any damages reasonably and proximately resulting from the breaches of the contract which are. alleged in the answer.
It seems clear to us that the evidence adduced by the plaintiff was ample to make out a prima facie case on the second count in the petition, and that the court erred in giving the defendants’ instruction withdrawing it from the jury. It follows that the judgment must be reversed and cause remanded.
All concur.