¶1The defendant appeals from the trial court’s judgment for the plaintiff in an action seeking full payment for work the plaintiff did installing a septic system and performing other plumbing work. The defendant claims that the trial court erred (1) in accepting opinion evidence regarding the standards of the state building code where it should have accepted the standards in the code as a matter of law, (2) in awarding attorney’s fees to the plaintiff in excess of 15 percent of the judgment in violation of General Statutes § 42-150aa (b) and in failing to award attorney’s fees to the defendant on his successful counterclaim. We find error in part.
¶2It is well established that appellate courts will not retry facts or pass upon the credibility of. witnesses and the weight to be accorded the evidence. Parkview Paving Co. v. New Haven, 13 Conn. App. 574, 537 A.2d 1049 (1988). Our review in this appeal is limited to a determination of whether the trial court’s judgment was clearly erroneous in this respect or otherwise contrary to law. Id. After our careful review of the record and arguments with respect to the defendant’s first claim of error we find that the trial court did not err.
¶3We next consider the defendant’s claim that the trial court erred in awarding attorney’s fees to the plaintiff and in denying the same to the defendant on his counterclaim. We agree.
¶4General Statutes § 42-150aa
¶5Similarly General Statutes § 42-150bb provides for the award of attorney’s fees for consumers who successfully prosecute or defend an action or a counterclaim based upon the contract and sets forth as follows: “Whenever any contract or lease entered into on or after October 1,1979, to which a consumer is a party, *164provides for the attorney’s fee of the commercial party to be paid by the consumer, an attorney’s fee shall be awarded as a matter of law to the consumer who successfully prosecutes or defends an action or a counterclaim based upon the contract or lease. Except as hereinafter provided, the size of the attorney’s fee awarded to the consumer shall be based as far as practicable upon the terms governing the size of the fee for the commercial party . . . .” Clearly, as a matter of law, the defendant was entitled to attorney’s fees of $45.87, or 15 percent of the counterclaim award of $305.78. In denying the defendant this coneededly modest amount, the trial court nonetheless plainly erred.
¶6There is error in part, the judgment is set aside only as to the amount of attorney’s fees awarded on the complaint and counterclaim, and the case is remanded for further proceedings not inconsistent with this opinion.
¶7 “[General Statutes] Sec. 42-150aa. attorney’s fees limited in actions ON CONSUMER contracts OR leases, (a) The holder of any contract or lease entered into on or after October 1,1979, the subject of which *163is money, property or services intended to be used primarily for personal, family, or household purposes and which contains a provision for payment of attorney’s fees of a creditor, seller or lessor, shall not receive, claim or collect any payment for attorney’s fees (1) for an attorney who is a salaried employee of such holder or (2) prior to the commencement of lawsuit.
¶8“(b) If a lawsuit in which money damages are claimed is commenced by an attorney who is not a salaried employee of the holder of a contract or lease subject to the provisions of this section, such holder may receive or collect attorney’s fees, if not otherwise prohibited by law, of not more than fifteen per cent of the amount of any judgment which is entered.”