We are of the opinion tnat the court had no power in the same order to direct an amendment of the complaint and order a compulsory reference. The defendant had a right to answer the amended complaint. Under the complaint as originally framed the plaintiff could certainly have claimed the right to prove an account stated. By the amendment this cause of action was eliminated, and one upon a quantum meruit substituted. This new cause of action the defendant had a right to meet by a new pleading. If it be claimed that there was also a count in the complaint for goods sold and delivered, and that that remained, it is to be observed that in connection with that count the plaintiff claimed that the price of goods delivered had been agreed upon, and that this allegation was stricken out in the order of reference, and another substituted in its place, alleging what was the reasonable value therefor. An entirely new issue was thus tendered to the defendant, and his right of answer could not be taken away, and before issue joined no reference can be made. The order should be reversed, with $10 costs and disbursements. All concur.