*217OPINION OF THE COURT BY
MENOR, J.This is an action for an accounting predicated upon the alleged existence of a joint venture. The plaintiffs below are James S. Shinn and Kenneth Shinn, a co-partnership doing business as Shinn Brothers Foundation, and James S. Shinn, an individual (hereinafter “Shinn”). The defendants are Edwin Yee, Ltd., and Edwin K. Q. Yee, an indivdual (hereinafter “Yee”), and Condominium Hawaii, Inc.
The plaintiffs in their complaint contended that the parties had entered into a joint venture for the development of the Kahala Towers condominium project. The purported agreement called for the development, construction, and sale of condominium apartments on Bishop Estate leasehold premises held in the name of Edwin Yee, Ltd. They alleged that the defendants had wrongfully and illegally excluded them from the joint venture. Additionally, they complained that the defendants had wrongfully utilized certain joint venture assets for their own purposes and requested that these misappropriated funds be traced and a constructive trust impressed upon whatever profits may have accrued to the defendants as a result of the alleged misappropriations.
The trial court found in favor of the plaintiffs on the issue of whether a joint venture existed but denied their request for a tracing of the alleged misappropriated funds. Judgment was entered accordingly. The defendants appeal and the plaintiffs cross-appeal.
I
The initial issue to be decided on appeal is whether a joint venture relationship existed between the parties.
A joint venture is a mutual undertaking by two or more persons to carry out a single business enterprise for profit. It is closely akin to a partnership, and the rules governing the creation and existence of partnerships are generally applica*218ble to joint ventures.1 Kienitz v. Sager, 40 Haw. 1 (1953). See also Eastern Iron & Metal Co. v. Patterson, 39 Haw. 346 (1952). It is a contractual relationship which necessarily contemplates some contribution by each of the parties of money, property, effort, knowledge, skill, or other resources to the common undertaking. As with a partnership, it is absolutely essential that there be an agreement between the parties for a joint venture and that there be a provision in the contract for their sharing, as joint venturers, of the profits of the business. See Winkelbach v. Honolulu Amusement Co., 20 Haw. 498 (1911).
The existence of a joint venture agreement must be shown by the preponderance of the evidence, Brooks v. Brooks, 357 Mo. 343, 208 S.W.2d 279 (1947); cf. Holmes v. Ray, 13 Haw. 228 (1901), and its essential terms must be established with reasonable certainty. Kienitz v. Sager, supra. It is not necessary, however, that there be a specific formal agreement to enter into a joint venture. The contract between the parties may be express or implied, and may be proven by direct evidence, or by proof of facts and circumstances from which the agreement of the parties may be ascertained. Ibid; James v. Herbert, 149 Cal. App. 2d 741, 309 P.2d 91 (1957).
The trial court determined that a joint venture relationship existed between the parties, and specifically found that between December 23, 1965, and March 14, 1966, Yee and Shinn negotiated and agreed to form a joint venture for the purpose of constructing two high-rise condominium apartment buildings to be known as the “Kahala Towers;” that they were to contribute equally to the capital requirements of the project which was to be built on leasehold premises; that they were to have equal right of control over the project, except that Yee, because of his superior knowledge in this area, was to be the managing joint venturer; and that they were to share equally in the profits of the joint enterprise, except that in the final accounting Yee would be entitled to an *219additional $121,000 as and for his managerial ability and “know-how, ’ ’ including but not limited to his ability to borrow money in the name of the joint venture for joint venture capital purposes and his management of the project to its successful completion.
Whether a joint venture exists generally requires the resolution of disputed issues of fact, and where the trial court, sitting without a jury, has made its factual determinations, its “[findings of fact shall not be set aside unless clearly erroneous, and due regard shall be given to the opportunity of the trial court to judge of the credibility of the witnesses.” H.R.C.P. Rule 52(a). It is for the trial court to determine whether and to what extent a witness is worthy of credit, and to give to his testimony the weight that it deserves. The court may accept or reject the testimony of a witness in whole or in part. State v. Cannon, 56 Haw. 161, 532 P.2d 391 (1975); Siko v. Seguirant, 51 Haw. 118, 452 P.2d 447 (1969); In re Miller’s Estate, 143 Cal. App. 2d 544, 299 P.2d 1005 (1956). Accordingly, where the trial court’s determinations of fact are largely dependent upon the resolution of conflicting testimony, great weight will be accorded its findings upon review. Lopez v. Tavares, 51 Haw. 94, 451 P.2d 804 (1969); Shannon v. Murphy, 49 Haw. 661, 426 P.2d 816 (1967). And while reasonable minds may fairly differ as to whether certain evidence establishes a fact in issue, yet where findings of fact are supported by substantial evidence the findings of the trial court will be sustained. Imperial Finance Corp. v. Finance Factors, 53 Haw. 203, 490 P.2d 662 (1971). Substantial evidence is credible evidence which is of sufficient quantity and probative value to justify a reasonable man in reaching a conclusion. In re Charley’s Tour & Transp., Inc., 55 Haw. 463, 522 P.2d 1272 (1974).
The trial court found that the parties entered into a joint venture agreement as of March 14, 1966. This finding is amply supported by the evidence and is not clearly erroneous.
It is not disputed that a joint undertaking was contemplated and discussed by the parties almost from the very *220beginning. Neither is it disputed that meetings were held between them, relative to the joint venture, prior to March 14, 1966.
Waikaha Manor, Inc., was the owner of Bishop Estate Lease No. 11,832, which had been acquired by it for a proposed apartment, project. Shinn was both a preferred and a common stockholder in the corporation, as well as a corporate director. Sometime in October, 1965, Yee asked to meet with Shinn to discuss the possibility of Yee’s purchase of the lease and development rights from Waikaha Manor. At that meeting Shinn suggested to Yee that a bid of at least $500,000 would stand a better chance of success than one for a lesser amount. Yee eventually submitted a bid for $550,000, which turned out to be the highest bid. His offer was accepted by the corporation on December 22, 1965. The purchase price of $550,000 was to be paid in the following installments: $150,000 on July 1, 1967; $150,000 on July 1, 1968; $150,000 on July 1,1969; and $100,000 on July 1,1970. Yee executed a promissory note in accordance with the terms of purchase on March 7, 1966. Additionally, and as part of the cost of purchase to Yee, he agreed to assume certain existing obligations of Waikaha Manor amounting to approximately $126,000, and consisting essentially of back lease rentals, architects’ fees, and real property taxes.
Shinn testified that following the consummation of the purchase, he met with Yee at the Foster Towers Coffee House on December 30,1965. At that time Yee advanced the possibility of a partnership between them for the development of the Kahala Towers project. Yee admitted that he met with Shinn on a number of occasions during the months of January and February of 1966, to discuss the Kahala Towers project as a joint undertaking.
Shinn testified that he asked Yee at the initial meeting of December 30 how much his “front money” contribution was to be, and Yee advised him that it would be in the neighborhood of $100,000. Shinn made no commitment at the time, but they met again a day or two later, at which time Yee became more specific regarding the preliminary expenses. *221On a sheet of ledger paper which was admitted into evidence, Yee listed down the anticipated capital requirements and calculated Shinn’s one-half share to be $103,000. The items listed included the architects’ fees, lease rentals, real property taxes, and interest, which Yee had agreed with Waikaha Manor to assume as part of the purchase price of the Waikaha Manor project. Yee also told Shinn that the necessary basic and interim financing for the project was already assured. He mentioned Island Federal Savings & Loan as the source of the construction funds. Shinn was still unable to commit himself, because he had first to ascertain whether he could raise his share of the necessary funds. He asked Yee for time to think it over.
According to Shinn, a tentative agreement was reached at one of their subsequent meetings in January, and it was in late February or March that he finally and firmly committed himself to the venture. This was before he made his initial capital contribution of $2500 on March 14, 1966. Shinn testified that it was agreed that he would make a total contribution of $103,000 to the joint venture; that he and Yee would share equally in the profits of the venture; and that Yee was going “to run the show.”
Shinn in early March began taking concrete steps to raise the amount which he was committed to contribute to the capital requirements of the project. He contacted Royal Grove Hotel, Inc., with whom he had other business arrangements, and the corporation responded with a letter, dated March 7, 1966, assuring him that it would make available to him not less than $53,000 on or before June 30, 1966. Shinn explained thst pursuant to his arrangements with Yee his share of the capital contributions had to be paid into the joint venture by July, 1966. Yee himself had given Shinn an assist in this area. Earlier he had suggested to Shinn that Shinn obtain a loan from Island Federal Savings & Loan, to help him raise part of the amount he needed to contribute to the venture, and on February 16, 1966, Yee transmitted to Island Federal Savings, in Shinn’s behalf, the latter’s loan application forms and supporting documents for processing. *222On April 20, 1966, Island Federal approved a loan to Shinn in the amount of $46,500, and Shinn signed a promissory note for that amount on that same date. As collateral for the loan, Shiim was required to pledge a parcel of land which he owned. An initial service charge of $4,650 was levied against Shinn on account of the loan, and this levy was included in the amount which Shinn had obligated himself to pay back to Island Federal. Shinn made his initial capital contribution of $2,500 to the joint venture on March 14, 1966. This represented one-half of the architects’ fees then due and owing by Yee pursuant to his purchase agreement with Waikaha Manor. Yee conceded that this payment was a capital contribution by Shinn and was made pursuant to “some sort of agreement” entered into between them prior to March 14, 1966. On April 22, 1966, Shinn made another payment of $2,500. Both checks were made payable to the Kahala Towers project.
All of these transactions took place prior to April 26,1966, obviously pursuant to an earlier agreement, and are supportive of the trial court’s finding that a joint venture agreement came into existence on or before March 14, 1966. Moreover, Yee, while testifying that he did not believe that they had come to a complete agreement as early as March 14, 1966, nevertheless admitted that they had reached some sort of an oral agreement prior to that date. And later in his testimony he made the further statement that the oral agreement to which he referred was the same in all particulars as the proposed written agreement drawn by his attorney following a meeting of the parties held on April 26, 1966. On the important element of profit-sharing Yee testified that no change was made at the April 26 meeting. He stated that the formula he advocated at trial was the agreement and the arrangement he had with Shinn “from the very beginning.”
It was for the trial court, and not for the parties themselves, to determine the legal effect of their conduct and discussions relative to the admittedly common undertaking, Barnes v. Collins, 16 Haw. 340 (1904); cf. Black v. Lord, 29 Haw. 204 (1926), reh. den. 29 Haw. 420, and the trial court *223properly found that the parties had come to an agreement for a joint venture on or before March 14, 1966, and not on April 26,1966, as urged by Yee at trial and on this appeal. The date, April 26,1966, is significant only in the context of a collateral, though important, issue raised in this appeal. This particular matter will be discussed in Part III of this opinion.
It is apparent from the record that the real dispute between the parties concerned itself with three principal areas of their agreement: (1) division of the profits of the enterprise, (2) amount and nature of the capital contributions to be made by the parties and (3) ownership and use of the Bishop Estate lease. This last item will be discussed in Part II of this opinion.
With respect to the division of the profits, Shinn claims that he was entitled to 50% of the net. Yee, on the other hand, takes the position that 37%%, or one-half of 75%, was the maximum to which Shinn was entitled. What the parties agreed to as their respective shares of the profits of the common enterprise was a factual matter for the trial court to resolve and determine. Collingwood v. Palmer, 144 Kan. 636, 62 P.2d 910 (1936).
Shinn testified that the agreement he had with Yee called for a “50-50 split” of the profits of the joint venture. He admitted that early in the discussions, sometime in January, 1966, Yee had brought up the subject of paying certain officials of Island Federal Savings & Loan “under the table,” for their help in arranging for the construction loan to the project. Shinn testified, however, that he was outraged by the suggestion, refused to go along with it, and told Yee he would have nothing further to do with the proposed joint venture. Shinn stated that Yee then told him: “Cool, cool. We’ll drop the subject.” Shinn testified: “I didn’t want any money underneath the table. I went for 50-50 or none at all.”
Yee, on the other hand, testified that he and Shinn had agreed from the very beginning that 25% of the profits would go to other parties, and that both would then share in the remaining 75% equally. He stated that he had told Shinn that it was to go to certain people helping with the project and with *224the financing. He claimed that Shinn had agreed to that proposition. When asked on the witness stand who these people were, Yee explained that they were his two brothers, Clarence and "'Harry, and his business associate, Harry Otsuji, who was then president of Condominium Hawaii, Inc., the firm the joint venture eventually retained to develop and market the Kahala Towers units for a specified fee. Yee denied ever telling Shinn or anyone that 25% of the profits would go to any official of Island Federal Savings & Loan. For that matter, he claimed that he never did tell Shinn to whom that particular share of the profits would be paid.
It was for the trial court to assess the testimony of the witnesses, to consider their conduct relative to the joint venture, and to weigh their testimony in the light of all of the other evidence. It was for the trial court to determine, for example, whether Shinn was indeed willing, as asserted by Yee, to agree to a 25% reduction in his personal share of the profits, while being required to make equal contributions towards the capital requirements of the project, and without being told to whom and for what specific purpose a percentage of the total joint venture profits were to be paid to unnamed third parties. Moreover, the profits of a common undertaking belong to the joint venture, and in the absence of evidence to the contrary, the law will imply an equal division without regard to any inequality of contribution. Smaller v. Leach, 136 Colo. 297, 316 P.2d 1030 (1957), cert. denied 356 U.S. 936; Hamilton v. Young, 285 F. 223 (5th Cir. 1922); Collingwood v. Palmer, supra. Cf. HRS § 425-118. The finding by the trial court that an equal division of the profits was contemplated and intended by the parties was not clearly erroneous. Cf. Collingwood v. Palmer, supra.
In the area of capital contributions, Shinn testified that Yee told him that $206,000 was the anticipated amount required for the joint venture. Yee told him that he had already arranged for the basic and interim financing for the project with Island Federal Savings & Loan. Shinn testified that Yee told him that his share would be one-half of $206,000, or $103,000, and that he would not have to contribute any more *225than that amount, except for a possible additional contribution of several thousand dollars for publicity connected with the project’s model apartment. The record shows, as a matter of fact, that Shinn had contributed the sum of $107,000 to the venture by the time the relationship between the parties had become seriously strained.
The trial court found, however, that the agreement provided for equal contribution by the parties towards the expenses of the project. A joint venture is based upon a contractual relationship and while the parties may properly provide that the contributions of the parties need not be equal, James v. Herbert; supra, the court’s finding was supported by the testimony of Yee to the effect that Shinn had agreed to bear one-half of the expenses of the project.
Directly related to the question of capital contributions was the finding of the trial court that Shinn was required under their agreement to contribute the additional sum of $121,000 towards the capital requirements of the project. This sum was the amount Shinn had originally calculated to be his share, as a stockholder, in the equity of Waikaha Manor, Inc., following the purchase by Yee of Waikaha’s Kahala Towers developmental rights. Yee testified that at their meeting in January, 1966, when the parties were going over the initial requirements of the project, he had suggested to Shinn that if Shinn could arrange for Waikaha Manor to reduce the purchase price of $550,000 by the amount which Shinn would be entitled to receive from the corporation, there would be that much less for the joint venture to pay. Shinn did not deny that he had agreed to this arrangement, but he took the position that it was to be only a “deferred money” contribution. He testified that while his equity in Waikaha Manor was to be used as an offset against the purchase price of the Waikaha Manor project, it was understood and agreed that the money was going to be returned to him after 80% of the condominium units had been sold or after the project had been completed. Yee, however, took the position, and he so testified, that the sum of $121,000 was for his “know-how” and for his management of the joint enterprise. Yee having *226also testified that the terms of the agreement which he urged upon the trial court were the arrangements he had with Shinn from the very beginning, the trial court apparently chose to accept Yee’s version of this particular arrangement, and Shinn, against whom the adverse ruling was directed, has not raised the issue in his cross-appeal.
As with a partnership, there are two essential elements to a joint venture — a contract between the parties and a provision in the agreement for the sharing of the profits of the enterprise. Cf. Winkelbach v. Honolulu Amusement Co., supra. The evidence is clear that the parties did enter into a joint venture agreement for the development and sale of the Kahala Towers, and the court properly found that the contract came into existence on or before March 14, 1966, when Shinn made his initial capital contribution to the joint venture. The evidence is also clear that there was a provision in the agreement for the division of the profits. Only the ratio of distribution was in dispute. This was for the trial court to resolve, and its findings in this regard were not clearly erroneous. Obviously, the mere fact that the parties have taken contradictory positions on the witness stand, regarding the terms of their agreement, does not necessarily require a finding that no agreement was reached. Cf. Collingwood v. Palmer, supra.
II
Yee, who held title to the Bishop Estate lease, has taken the position that the lease was never an asset of the joint venture. The trial court held otherwise and entered the following findings of fact:
In or about March or April of 1966, the joint venture agreed to and did purchase from Yee said Bishop Estate Lease No. 11,832 and the plans and specifications for an apartment building which Yee had theretofore purchased from Waikaha Manor, Inc., and as and for the price therefor, the joint venture agreed to assume and pay to Waikaha Manor, Inc. the abovementioned $550,000.00 purchase price therefor and assume the obligations to *227pay the delinquent rent and real property taxes and architectural fees abovementioned.
On or about June 1, 1966, Bishop Estate Lease No. 11832 was cancelled and a new Lease being Bishop Estate Lease No. 16,250 was made to and taken under the name of Yee, in place of Lease No. 11832 so cancelled.
On or about September 22, 1966, the joint venture made and delivered to Condominium Hawaii, Inc., [the firm retained to develop and market the project for a specified fee], a Sublease of the leasehold premises; the excess of the Sublease rent over the rent reserved in Bishop Estate Lease No. 16,250 (“Over-ride”) being about $51,811.00 per year for the first 15-year period, $53,168.00 per year for the next 10-year period, $63,801.00 per year for the next 5-year period, and 20% of the renegotiated rent under the terms of said Lease No. 16,250 for the next 25-year period.
Said Bishop Estate Lease No. 16,250, the Sublease dated September 22, 1966 to Condominium Hawaii, Inc. and all right, title and interest of Yee and/or Condominium Hawaii, Inc. in all assignments of portions of said Sublease are and were at all times mentioned herein assets and property belonging to the joint venture.
In short, the trial court held that the sublease “over-ride” was property belonging to the joint venture. The foregoing findings were supported by substantial evidence and are not clearly erroneous. Without the lease there could have been no project. The joint venture agreement would have been impossible of performance. The essence of the purchase by Yee of the Waikaha Manor developmental rights as he readily admitted, was the acquisition of the Bishop Estate leasehold. And because the parties had agreed to a joint undertaking for the Kahala Towers project, as the court so found, it was reasonable, if not mandatory, for the trial court to further find that the lease was part and parcel of the joint venture. But there was more beyond this aspect of the case from which the trial court could properly reach its findings. Discussions concerning the joint venture were initiated by Yee shortly following *228his purchase of the lease from Waikaha Manor. He testified that early in the negotiations with Shinn he had pointed out to him that if Shinn could get Waikaha Manor to reduce the purchase price of $550,000 by the amount of Shinn’s equity as a stockholder in Waikaha Manor, there would be that much less for the joint venture to pay. Shinn testified that he had agreed to this arrangement and explained that both he and Yee, as partners, would then be paying Waikaha Manor the purchase price, less the sum of $121,000 which he had calculated his equity in Waikaha Manor to be. The payments to Waikaha Manor by the parties were to be made in installments required by the purchase agreement, the terms of which were similarly contained in the promissory note executed by Yee on March 7, 1966. The first such installment was not due until July 1, 1967, and the development of the project was scheduled to commence in 1966. The Master’s Report shows that the purchase price of $550,000 was charged to the costs of construction on the books of the joint venture.
In addition to the purchase price of $550,000, Yee had agreed to assume certain of Waikaha Manor’s existing obligations, which amounted to approximately $126,000. These items were included in Yee’s initial estimate of the capital requirements of the project, one-half of which ($103,000) Shinn had agreed to contribute. Shinn did make the required contributions, and relative thereto Yee testified:
Q Well, what was the money being contributed by Dr. Shinn to be used for?
A It was used for the acquisition of the development rights and for the expenses incurred.
Q And what were the development rights? They were acquired from Waikaha Manor, Inc.; were they not?
A That’s correct.
Q And you stated that included the Bishop Estate lea§e.
A That’s right.
There was ample evidence from which the trial court could conclude that the parties intended the Bishop Estate *229lease to be the property of the joint venture, and in so holding the court did not err. A formal assignment of the Bishop Estate lease to the joint venture was not required. Cf. Moropoulos v. C.H. & O.B. Fuller Co., 186 Cal. 679, 200 P. 601 (1921); Ah Leong v. Ah Leong, 28 Haw. 581 (1925).
In Moropoulos, the court stated:
“Where one holding a lease of premises enters into a partnership with another, agreeing to the use and possession of the leased property in the business, a valid interest in the lease is thereby vested in the partnership.” 186 Cal. at 688, 200 P. at 605.
ill
Yee has raised in this court the applicability of the “unclean hands” doctrine. Earlier we made reference to the date, April 26, 1966, as having some significance to a collateral issue raised in this appeal. On that date, Shinn and Yee, with their respective attorneys, Genro Kashiwa and Harold Yamada, met to discuss the joint venture. Regarding this meeting, Mr. Kashiwa who was Shinn’s attorney testified:
“The other thing was that up to then, the agreement was a 50-50 joint venture. Then at this meeting, they say it’s 37%, and we discussed why it was 37%. And the reason was that Dr. Shinn was to get one half of 75 per cent of the profits, and I found out that the 25 per cent of the profits was supposed to go to the person who arranged to get the mortgage financing. There was a 6.8-million mortgage loan commitment, and the 25 per cent of the profit was supposed to go to that person who arranged for that mortgage loan. And, therefore, the only thing remaining to be split between the two partners was 75 per cent, and 37% per cent is 50 per cent of 75 per cent.
“So I explained that to Dr. Shinn and said that if a person can get a 6.8-million dollars mortgage loan commitment, maybe he’s entitled to 25 per cent of the profit. And we understood that this was not Edwin Yee or his brothers or anybody else, but we understood that to be Mr. Cliff Krueger of Island Federal.
*230“And I told Dr. Shinn, that, ‘Well, as far as I’m concerned, it’s a legitimate expense and, therefore, the only amount remaining would be 75 per cent each; that’s 50-50’. And this is — I clarified this in my letter of September 1st.”2
Yee, however, expressly denied on the witness stand the existence of any “kickback” arrangement with Krueger and further denied ever telling Shinn or anyone that 25% of the profits would go to any official of Island Federal Savings & Loan. He has nevertheless advanced the argument that because Shinn had agreed to an alleged illegal “kickback” arrangement, he should now be precluded from asserting his claims under the joint venture agreement. He seeks the invocation against Shinn of the equitable doctrine of “unclean hands,” which holds that “[h]e, who comes into equity must come with clean hands.”
This defense is raised for the first time on appeal. The fact, however, that it was not presented to the trial court does not preclude us from considering the matter. Primeau v. Granfield, 193 F. 911 (2nd Cir. 1911), cert. denied 225 U. S. 708 (1911); Gaudiosi v. Mellon, 269 F.2d 873 (3rd Cir. 1959), cert. denied 361 U.S. 902 (1959); Gilmore v. Thomas, 252 Mo. 147, 158 S.W. 577 (1913); cf. Young v. Wo, 36 Haw. 676 (1944). But whether the party against whom the maxim is sought to be applied engaged in iniquitous conduct is primarily a question of fact, and the issue having first been raised on appeal, we are called upon to make this determination. And on the factual posture of the case before us, we are not persuaded by Yee’s argument. The doctrine is not one of absolutes, and. each case must be judged on its particular facts and circumstances. Keystone Driller Company v. General Excavator Company, 290 U.S. 240 (1933).
*231It had been agreed by the parties that Yee was to be the managing partner in the joint venture, and that he was “going to run the show.” He was responsible for securing the necessary construction financing for the project. Shinn had no direct connection or communication with Krueger or with any other official or employee of Island Federal Savings & Loan regarding the construction loan made to the joint venture. Shinn and Kashiwa testified that Yee told them that the joint venture had to pay Krueger 25% of the profits for his help in arranging for the loan to the joint venture. In fact there was no such agreement with Krueger. Shinn agreed on the basis of the representation by Yee that the joint venture had obligated itself to pay Krueger. Yee, however, denies that he ever made that representation. He denies that he ever discussed with Shinn, much less agreed to, any alleged “kickback” arrangement with Krueger. He denies that there was ever such an arrangement, and in fact there was none.3 Instead the record shows that unknown to Shinn, Yee had intended that 25% of the profits should go to Yee’s two brothers and to a close business associate. Assuming that Yee did make the alleged representation to Shinn and Kashiwa, no conclusion can be drawn other than that it was made by Yee in pursuance of this undisclosed objective. If any iniquitous conduct is chargeable to a party in this situation it must be charged to Yee and not to Shinn. Yee cannot have his cake and eat it, too. The doctrine of “unclean hands” will not allow a party to profit by his own misconduct. The concept is based upon “considerations that make for the advancement of right and justice,” Keystone Driller Company v. General Excavator Company, supra, at 245, and will not be invoked when to do so would work injustice and wrong. Jones v. Jones, 30 Haw. 565 (1928). Shinn’s misconduct, if at all, was purely in the abstract and in the circumstances of this case did not constitute *232unclean hands. Republic Molding Corporation v. B. W. Photo Utilities, 319 F.2d 347 (9th Cir. 1963).
But there are also other compelling reasons why Yee’s assertions of “unclean hands” should be dismissed for lack of merit. Shinn allegedly agreed to the illegal “kickback” arrangement to pay Krueger at the meeting of April 26, 1966. The record shows, however, that Island Federal Savings & Loan, through one of its officers (not Krueger), had already given its construction loan commitment of $6.8 million before the April 26 meeting. There is absolutely no evidence to show that this commitment was illegally obtained. Everything in the record points to the contrary. This loan assurance to the joint venture was made on March 21, 1966, a week after the oral agreement of March 14, 1966. It is clear, therefore, that there was absolutely no connection between the alleged illegal agreement to pay Krueger and the loan itself. No impropriety on the part of Shinn, relative to the loan commitment of March 21, 1966, has been shown. And where the plaintiff’s claim has no direct connection with the alleged misconduct, and is supported by independent consideration, the doctrine of “unclean hands” will not be invoked to defeat his claim. Jones v. Jones, supra; Woodward v. Auyong, 33 Haw. 810 (1936); Kuwahara v. Kuwahara, 23 Haw. 273, 276 (1916). In Kuwahara, we said:
“An obligation will be enforced,... if it is supported by an independent consideration, so that the plaintiff does not require the aid of the illegal transaction to make out his case.” (Emphasis added)
Moreover, the trial court found, and we agree, that the joint venture agreement of the parties came into existence on or before March 14, 1966. It further found that the April 26 meeting was designed to amend or modify the original agreement of March 14, 1966, but that the parties had failed to agree to the essentials of the proposed amendatory agreement. This particular finding was not clearly erroneous. But even if w'e were to assume that an agreement to modify the original contract was reached at that meeting, yet, following Yee’s reasoning on appeal, the amendatory agreement would *233have been so permeated with the illegality of the “kickback” provision that it would have been void and unenforceable. Cf. Goo Yee v. Rosenberg, 21 Haw. 513 (1913). In that event, obviously, the amendatory agreement could have no effect and the original contract must stand. Tillman v. Talbert, 244 N.C. 270, 93 S.E.2d 101 (1956); cf. Spellman v. Ruhde, 28 Wis.2d 599, 137 N.W.2d 425 (1965).
We have considered Yee’s other specifications of error. They are either without merit, or the errors of which he complains were harmless. In the absence of a clear showing to the contrary, it will be presumed that the trial judge relied only on evidence properly admissible in making his determinations. United States v. 396 Corp., 264 F.2d 704 (2nd Cir. 1959), cert. denied 361 U.S. 817 (1959). Substantial competent evidence in the record supports the trial court’s findings on the essential factual issues under consideration.
IV
Shinn in his cross-appeal alleges that the trial court erred in denying his request for a tracing of the joint venture funds misappropriated by Yee for his own use and benefit.
The trial court found that Yee, without the knowledge and consent of Shinn, borrowed $400,000.00 on August 22, 1966, and another $225,000.00 on September 14,1966, from Island Federal Savings & Loan on the security of a mortgage of the Bishop Estate lease, using a portion of the loan proceeds to pay joint venture expenses and the remainder for his own separate businesses. The court then concluded as follows:
That the proceeds of the loans made by Yee on August 22, 1966 in the sum of $400,000.00 and on September 14, 1966 in the sum of $225,000.00 from Island Federal Savings & Loan Association on the security of a mortgage of said Bishop Estate Lease No. 16,250 are funds belonging to the joint venture and the use by Yee of a portion of said proceeds in its own business and the business of its subsidiaries or affiliated companies, other than for the purpose of the joint venture is a misappropriation thereof *234and was wrongful, unlawful and in breach of its fiduciary duties and the terms of the joint venture;
That Yee must account to the joint venture and Shinn, the disposition and use by Yee of any and all amounts, funds and assets of the joint venture for its own business, use or advantage or for purposes other than the joint venture purposes as abovementioned.
The relief granted Shinn by the trial court for Yee’s appropriation of part of the funds for other than joint venture purposes was the requirement that Yee repay the amounts borrowed and pay interest on the funds so used. Shinn does not claim that profits were made, but he would have this court decree that the funds borrowed be traced to determine whether profits were made by Yee as a result of these transactions. See Watumull v. Ettinger, 39 Haw. 185 (1952); Peine v. Murphy, 46 Haw. 233, 377 P.2d 708 (1962); 5 Scott on Trusts, 3rd Ed., § 503.
Strictly speaking, there was a misuse of joint venture funds. No fraud or fraudulent intent on the part of Yee, however, has been shown, and on the basis of the record the trial court properly found none. Yee was the owner of a number of other companies subsidiary to, or affiliated with, Edwin Yee, Ltd. He testified that it was common business practice for him to transfer funds between companies as the need arose. By agreement with Shinn, he was in complete charge of joint venture operations. The record shows that loans from and to the joint venture were made throughout the period under consideration. The Master’s Report for the period ending June 5, 1970, showed loans to thirteen affiliates amounting to $383,000. At that same point in time, the joint venture owed certain other affiliates the total sum of $343,000. An updated report covering the subsequent period ending October 31. 1971, showed loans to the joint venture from the affiliates amounting to $355,000. This was adjusted upward to $461,000 by order of the court. Loans to the joint venture as of that date totalled $552,000. Throughout the entire period interest was uniformly assessed against each of these loans, except that as to certain loans from the joint *235venture interest rates were increased by order of the trial court. At the time of the hearing on the Master’s reports, on January 26, 1973, prior to the entry of judgment, the aggregate of the loans to the joint venture was still greater than the amount of its loans to the affiliates. Except where the original Holiday Mart loan of $225,000 from the joint venture was concerned, the record does not disclose the specific purposes for which these various loans to and from the joint venture were made. Presumably, as in the case of Holiday Mart, they were designed to meet operational requirements.
Murray Estes (Robert Hogan,, of counsel) for defendants-appellants, cross appellees. Douglas S. Hasegawa (Kashiwa & Kanazawa, of counsel) for plaintiffs-appellees, cross appellants.Shinn’s remedy in this case was addressed to the sound discretion of the trial court. Virginian Ry. v. Federation, 300 U.S. 515, 550 (1937). The relief granted in equity is dictated by the equitable requirements of the situation, and must be adapted to the facts and circumstances of the particular case. Fleming v. Napili Kai, Ltd., 50 Haw. 66, 430 P.2d 316 (1967), reh. den. 50 Haw. 83, 431 P.2d 299. Following a review of the entire record, we are disinclined to hold that the trial court abused its discretion in molding its decree so as to satisfy the requirements of this particular case.
Affirmed.
By Act 17, Session Laws of Hawaii 1972, the Legislature included joint ventures within the definition of a “partnership” under the Uniform Partnership Act. See HRS § 425-106.
Such an expenditure would have been far from being legitimate. McConnell v. Commonwealth Pictures, 7 N.Y.2d 465, 166 N.E.2d 494, 199 N.Y.S.2d 483 (1960); see Fleishacker v. Blum, 109 F.2d 543 (9th Cir. 1940). In advising his client as he did, counsel was in error. Such advice was clearly not in the best interest of his client. Neither was it in keeping with the attorney’s code of professional conduct. Were it not for the peculiar circumstances of this case, his advice could have been fatal to his client’s cause.
Yee’s attorney himself represented to the trial court:
MR. ROTHER: Krueger denied it. We do not intend that he [Krueger] is to get one-fourth, he is not vested with one-fourth in the accounting, he didn’t get one-fourth, it’s just a contention by the plaintiffs [Shinn] that he was to get one-fourth, he [Krueger] himself denied it, the defendants [Yee] denied it.