Opinion by
Action of right brought by Stevens against "Wright. Judgment in the court below for Mtevens. "Wright sued out a writ of error and the ruling of the court is assigned for error. It appears from the record that the defendant Wright applied for a change of venue which application the court refused. This was excepted to and is relied upon as a reason why the judgment should he reversed. "We think the court were right in overruling the motion. Kev. Stat. 639, § 2, provides that any party to a suit may present to the court, or judge thereof in vacation, a petiton, to which an affidavit shall be appended setting forth the cause for his application for a change of venue. § 3, provides that if reasonable notice shall have been given to the adverse party or bis attorney of the time and place of sucli intended application for a change of venue, the court or judge thereof in vacation shall hear the case and if the application be in accordance with the provisions of the act. a change of venue shall he awarded, &c.
The question presented here is, did the adverse party in the ease have such reasonable notice of the application as he was entitled to under the statute.
The case was commenced in March, 1849, and had been continued one term of the court, when the application was made. At the November term, the defendant served a
"We will now proceed to the next and only remaining question. In relation to occupying claimants in an action of right, the statute provides, “ that no defendant in the above named actions shall be liable for any damages to the plaintiff, nor in any action for mesne profits or damages for use and occupation, if it shall appear at the trial of said cause that said defendant or defendants has or have made valuable improvements on said tract or tracts of land the possession of which is sought to be recovered by the plaintiff or the plaintiffs.”
A majority of the court are of the opinion that all valuable improvements whether made by the defendants or pur. chased by him may be set off, against the use and occupation in an action of right. "We have before decided that a judgment cannot be obtained in this action against the plaintiff for the value of the improvements if they exceed the refits and profits. But to place a construction upon the statute by which the defendant would be restricted to the improvement actually made by him, would in our opinion defeat the object of the legislature, in extending tills relief to occupying claimants. This is ail equitable statute. It is entitled to such a construction as will make it effective and subservient to the object of its equitable provisions. Its object is to prevent a recovery for damages for use and occupation against the occupant, when valuable improvements have been made on the land. These improvements the owner obtains and the legislature here said that they shall he in,lien of his damages for use'and occupation. They belong to the soil. They enhance its value, and they are the property of him who lias the title. As far then as he is concerned, it matters not whether they were placed there by the man in possession or some prior tenant. They
Uridgment reversed.
