delivered the opinion of the court:
The plaintiffs filed a class action seeking a declaratory judgment that the defendant’s proposed amendment to a contract between them was void, as was defendant’s termination of members of plaintiff class; that defendant was required to bargain in good faith and that all members of plaintiff class were entitled to recover damages. The trial court, while stating that the proposed amendment was void, granted the defendant’s motion to dismiss the complaint. We find that the complaint stated a cause of action and reverse.
The plaintiffs are two individual drug companies, Alderman Drugs, Inc. (Alderman), and Woodbury Drug Company, Inc. (Woodbury), plus the Illinois Pharmaceutical Association (The Association). They filed a class action against Metropolitan Life Insurance Company (Metropolitan). According to the complaint the suit was brought on behalf of the over 1000 pharmacies and pharmacists who had entered into MediMET prescription drug agreements with Metropolitan. These contracts were prepared by Metropolitan and entered into in 1969 and thereafter. The contracts consisted of two parts: the basic agreement and the MediMET prescription drug schedule for each of the Metropolitan group health insurance plans for which the contracting pharmacy acted as a participating provider. Under the agreement, when a covered employee (one belonging to a group plan insured by Metropolitan) had a drug prescription to be filled, he would take it to a participating provider (a pharmacy under a MediMET agreement). The employee paid the deductible. Metropolitan then paid the pharmacy the actual cost of the drugs plus a dispensing fee of *2.50 minus the deductible. The amount of drugs dispensed at one time, and thus for the *2.50 fee, was limited by the schedules. The MediMET Agreement drawn up by Metropolitan provided “This Agreement and the Schedule or Schedules attached hereto constitute the entire understanding between the parties and shall not be altered or amended except in writing signed by both METROPOLITAN and PARTICIPATING PROVIDER.” Despite this provision, in 1977 Metropolitan unilaterally amended the Rockwell schedule (one of the schedules attached to the contract) to increase the amount of drugs dispensed for the *2.50 dispensing fee. Metropolitan threatened to terminate any pharmacist who objected to the amendment and did in fact terminate Alderman for the explicit reason that Alderman refused to sign the agreement. 1 Metropolitan has also taken the position that providers such as Woodbury who neither signed the amendment nor expressed to Metropolitan an objection to it have accepted the amendment.
The complaint further alleged that Metropolitan owed the members of plaintiff class a contractual duty of good faith and fair dealing, specifically that it had a duty not to use the termination provision of the agreement to nullify the amendment provision. Allegedly it owed this duty because, inter alia, through its group health insurance programs it controlled large groups of prescription drug customers and the terms and conditions under which they purchase drugs; it held an extremely superior economic position in relation to the individual members of the plaintiff class; Metropolitan induced the members of the plaintiff class to enter into the agreement and in reliance on Metropolitan’s continuance of the agreements, the members of the class had invested substantial time and resources in developing good will and continuing business relationships with the employees covered by the plans.
The plaintiffs in their complaint asked the court for an order:
1. declaring that Metropolitan’s proposed Rockwell amendment constitutes a breach of Metropolitan’s implied contractual duty of good faith and fair dealing; was unilaterally imposed in an arbitrary, unfair and coercive manner; constitutes a breach of Metropolitan’s fiduciary duty to the plaintiff class, and is void and unenforceable;
2. declaring that Metropolitan has a duty under the agreement to bargain in good faith with members or representatives of the plaintiff class with respect to proposed amendment to the agreement;
3. declaring that Metropolitan’s termination of the agreements with members of the class who refused to sign the amendment are void and of no effect;
4. declaring that all members of the plaintiff class are entitled to their actual damages, plus interest, attorneys’ fees and costs;
5. granting any further relief that may be just and equitable.
Metropolitan moved to dismiss the complaint because:
1. it failed to state a cause of action;
2. either Metropolitan or any participating provider who does not wish to continue under the terms offered by the defendant may terminate on 30 days’ notice;
3. the complaint failed to allege facts to establish the elements of a proper class action;
4. the complaint failed to establish that all necessary parties were before the court.
After hearing arguments on Metropolitan’s motion, the trial court stated:
“Gentlemen, I have listened with care to your arguments. I do not reach the question of propriety of the class action. I do not reach the question of the propriety of the standing of the Illinois Pharmaceutical Association, an Illinois not-for-profit corporation.
In the Court’s opinion, this is a dispute over a contract — a contract which clearly is subject to the terms and conditions of its entire writing, that Paragraph 14 certainly says what it says, and it attempts to modify the contract by new schedules; absent acceptance of ratification would be ineffective.
However, the Court also notes that the contract is terminable at will upon 30 days’ notice by either party, and the Court has been asked in this complaint to enter into the marketplace, and attempt to redress an alleged imbalance in fees paid to subscribers to the agreement for the rendering of pharmaceutical prescription services which, in turn, depend on the negotiation between insured corporations and their employees.
I do not believe that the complaint states a cause of action; accordingly, I sustain the motion to dismiss. The case is dismissed with prejudice and without costs.”
I.
Metropolitan on appeal contends that the trial court’s order was a declaration of the rights of the parties. We cannot agree for the simple reason that it would have been improper for the trial court to rule on the merits when all it had before it were the complaint and the motion to dismiss. The trial judge was aware of this. His ruling was not on the merits but merely stated that the complaint did not state a cause of action.
II.
Thus, the only issue before this court is whether the complaint, liberally construed in favor of the plaintiffs (Mentesana v. LaFranco (1979),
While it is true, as Metropolitan argues, that the court in its discretion may refuse to grant declaratory relief, the court has no discretion to refuse to entertain the action as against a motion to dismiss where the complaint states a cause of action. (Mid-Town Petroleum, Inc. v. Dine (1979),
An actual controversy is present here. Metropolitan contends that the new Rockwell schedule is the only one in effect despite the failure of the plaintiffs to accept it in writing as replacing the old schedule in the contract; it further contends that those plaintiffs who failed expressly to object to the amendment are bound by it. The plaintiffs deny both contentions, claiming that the terms of the contract signed by both the plaintiffs and Metropolitan are binding on both, and that the amendment is void. Furthermore, Metropolitan is apparently contending that it has, because of the termination clause, a right to force the plaintiffs either to accept the amendment or quit. In light of this, it is clear that the case presents “a concrete dispute admitting of an immediate and definite determination of the parties’ rights, the resolution of which will aid in the termination of the controversy or some part thereof.” (Underground Contractors Association v. City of Chicago (1977),
Metropolitan further contends that the complaint was properly dismissed because the plaintiffs were not entitled to any relief. But as is clear from what we have stated, at the very least the plaintiffs are entitled to a construction of the contract and their rights under it, including the validity of the Rockwell Amendment. No action is open to objection on the ground that only a declaration of rights is sought and a court may in cases of actual controversy make binding declarations of rights having the force of final judgments whether or not any consequential relief is, or could be, claimed. (Ill. Rev. Stat. 1977, ch. 110, par. 57.1.) It is possible, of course, that the plaintiffs are entitled to more.
It appears that the trial court dismissed the complaint because the plaintiffs had another remedy, namely they could terminate the contract. But it seems well established in this state that the existence of another remedy does not preclude declaratory relief. (La Salle National Bank v. County of Cook (1974),
III.
Finally, Metropolitan contends that the complaint does not state the proper elements of a class action. The trial court declined to rule on this question and so must we since the facts before us are insufficient for this court to render a decision. We note, however, that even if there is a conflict of interest between Woodbury and Alderman on the one hand and the rest of the class on the other, it is not clear that the conflict would affect the determination of the basic issue involved. (Compare Ross v. City of Geneva (1978),
For the foregoing reasons, the judgment of the trial court is reversed and the case remanded for further proceedings in accordance with this opinion.
Reversed and remanded.
JOHNSON and LINN, JJ., concur.
Notes
The agreement provides, “This Agreement shall remain in full force and effect until terminated by either party effective upon at least thirty (30) days written notice to the other, except that METROPOLITAN reserves the right to terminate, effective upon receipt of written notice by PARTICIPATING PROVIDER, for violation of this Agreement or for other good cause.”
