OPINION
Charles McClain appeals the order of the superior court granting Charles and his ex-wife joint custody of their child. The court based its order in part on an agreement executed by both parents and subsequently renounced by Charles.
Facts.
At the center of the controversy is an agreement signed by Dianne and Charles McClain (“Dianne” and “Charles”) regarding custody of their adopted minor child, Wendy (d.o.b. December 16, 1980).
Dianne filed for divorce from Charles on December 20, 1982. In their pleadings, both Dianne and Charles sought sole custody of Wendy. On April 15, 1983, the parties signed a custody agreement, stipulating that they would have joint custody of Wendy; Dianne would have custody from September through May, and Charles would have custody from June through August each year. They also agreed to alternate custody at Christmas, and allocated child support, life and medical insurance, travel, and travel costs. They agreed to advise each other of the physical, mental, and emotional condition of Wendy, and to permit her to speak to the noncustodial parent by telephone.
The case was referred to Elizabeth Southworth of the Custody Investigators Office so that she could review the custody agreement. Southworth met with both parents that month. She found that Dianne planned to move to South Carolina, where her family lived, on May 1, 1983. Charles told her that he had agreed to joint custody only to get Dianne out of the state, and that he intended to file for sole custody as soon as the divorce was granted. He stated that Dianne had an extensive history of mental illness and was unstable and unfit to care for Wendy. Thereafter, Southworth held an attorney conference and advised counsel for both parties that she would not recommend joint custody based on what Charles had told her.
Charles made an appointment to see Southworth, and told her that he had “mellowed out” and felt comfortable with the terms of the agreement. He also stated that he had discussed the possibility of filing for sole custody with his attorney and had decided to abide by the joint custody agreement.
Southworth’s report to the standing master, Cindy McBurney, stated that:
Mr. McClain’s credibility with me is sha-key (sic) at best. He originally made some very definite and hard felt statements regarding his wife’s ability to care for their child and in his second interview with me he gave me no indication as to what might have occurred in the intervening time to cause him to change his opinion. It is my feeling that Mr. McClain (sic) statements in the second interview were merely to smooth out the divorce process. I am not prepared to make any recommendation regarding custody in this matter at this time.
Master McBurney referred Dianne and Charles back to Southworth for a new investigation. Charles again told South-worth that he intended to pursue sole custody. As a result of Charles’ claims that Dianne had an extensive history of mental illness and was unfit to care for Wendy on a long-term basis, Southworth referred the *383 McClains to Dr. Richard Enter for psychological evaluations.
Dr. Enter noted in his report that Dianne and Charles were at the time meeting, discussing child care, and maintaining “an unusually compatible relationship given their legal dispute over custody.” He interviewed and tested both parents. In his report he described the personalities of both individuals and their relationships with Wendy. In summary, he found that either parent certainly could provide for the care and welfare of the child and that both enjoyed a good relationship with her and displayed concern for her future. He did not think that joint custody was desirable, however, since Dianne planned to live so far away from Charles.
After Dr. Enter issued his report, South-worth again was informed that Charles and Dianne were attempting to reach a joint custody agreement. Southworth did not know that Charles intended to litigate custody until Dianne’s attorney notified her of the impending trial. In her final report to the court Southworth stated that she did not disagree with Enter’s findings, but that she could not wholeheartedly endorse his recommendation that Charles be given sole custody if the parties were unable to exercise a satisfactory joint custody agreement, because of Charles’ lack of credibility throughout the entire investigation:
There is no doubt in this Investigator’s mind that both- Mr. and Mrs. McClain love their child deeply. Neither can be considered unfit as parents. It is clear that there are major differences in each parent’s lifestyles [and] beliefs, but this Investigator does not believe that one is clearly superior to the other.
Southworth declined to make a final recommendation as to custody, however, since she had not had sufficient notice before trial to complete her investigation.
The superior court granted the parents joint custody pursuant to the agreement they had signed on April 15, 1983. The court stated in its findings of fact that both Dianne and Charles were represented by counsel when they executed the agreement. The court found that Dianne had intended to fully comply with the agreement and that Charles had intended to litigate the agreement once Dianne left Alaska. The superior court further found that Charles might have misunderstood the advice of his attorney. Additionally the court stated that from the date of the executed agreement until the trial there was no substantial change of circumstances, and that there was no legal or equitable reason not to require Charles to honor the agreement.
In its conclusions of law, the superior court stated that both parents were fit and proper persons for custody of Wendy, and that the April 15, 1983 agreement met the best interests of the child and should be adopted as the court’s final order regarding custody and child support.
This appeal followed.
Determination of the Best Interests of the Child.
Charles contends that the trial court ignored its statutory obligation under AS 25.-20.060 and AS 25.24.150(c) to award custody based on the best interest of the child. 1 He maintains that it is unclear whether the trial court applied the statutory factors in making its determination.
*384 While the superior court did not specifically address the factors in AS 25.24.150(c), it did consider the best interests of the child. The court found that both parties were fit and proper persons for the custody of Wendy. The court also concluded that the child custody agreement should be adopted as the final custody order because it met the best interests of the child.
We will reverse a trial court’s resolution of a custody issue only if we are convinced that the record shows an abuse of discretion or if controlling factual findings are clearly erroneous.
Gratrix v. Gratrix,
There are two lines of cases that speak to whether the trial court’s failure to specifically address the relevant factors mandates remand or reversal. On one hand, we found remand or reversal necessary in
Gratrix v. Gratrix,
In the second line of cases, we have found that the trial court’s failure to state its findings is not fatal to the case. In
Harding v. Harding,
It would have been helpful to this court if [the trial judge] had listed the subsidiary facts upon which he based his general finding that “everything else is not equal” and which impelled him to award the custody of the two older children to the father, but his failure to do so is not fatal to this case. He did state that their education would be best served by placing them in the custody of the father. In spite of the wife’s insistence to the contrary we have no difficulty in gleaning other factors from the record in support of the trial judge’s general finding.
Id. at 380 (emphasis added, footnote omitted).
In
Mullaly v. Mullaly,
*385
This case falls into the second line of cases. The first line of cases consists of appeals from custody modifications. In actions for modifications of custody, the trial court must give great weight or due deference to the original custody determination.
Gratrix,
In an initial custody proceeding, however, the trial court is the finder of fact and is free to consider many factors, such as the demeanor of the witnesses and conflicting testimony. AS 25.20.060 states that in determining the best interests of the child, the court shall consider all relevant factors including those enumerated in AS 25.24.150(c). Applying the standards of Harding and Mullaly, we find that the trial court did not abuse its discretion, as the record supports the trial court’s finding that the terms of the agreement were in Wendy’s best interest.
Proper Consideration of the Custody Agreement.
Charles contends that the superior court erred in considering the custody agreement as a factor in determining custody. The superior court stated in its findings of fact that “[t]here is no legal reason nor any equitable reason not to require defendant to honor this agreement.”
AS 25.20.090 lists the factors that the trial court should consider in determining whether to award shared custody of a child. 2 The statute allows the court to consider those factors which “it considers pertinent.” AS 25.20.090(9). The custody agreement is a pertinent factor because it demonstrates that cooperation between the parents is possible. However, the agreement has no binding force on the court. The contractual intent of the parties is irrelevant. The court must independently determine what arrangement will best serve the child’s interests.
The danger present if a trial court bases a custody decision solely on a repudiated custody agreement is that such a decision would not necessarily honor the best interests of the child. Trial courts, not parents, are the ultimate decision makers as to custody and are not bound by private agreements. A child is not a chattel to be bargained away for consideration. Courts have sometimes refused to be bound by custody stipulations even when both parties stand by their agreement.
See, e.g., In Re Marriage of Hanson,
Alaska’s shared custody statute does not require that both parents agree to joint custody. AS 25.20.060;
3
AS 25.20.090. We think it apparent, however, that cooperation between parents is essential if the arrangement is to be in the best interests of the child.
See Smith v. Smith,
Our review of the record persuades us that the superior court applied the proper analysis. The custody agreement, even though later repudiated by Charles, indicates that the parties are able to cooperate for Wendy’s sake. Almost all of the evidence presented at the hearing supports findings that both parents are capable of meeting Wendy’s needs, that both parents enjoy a loving and affectionate relationship with her, that Wendy will live in a stable, satisfactory environment with either parent, and that both parents are reasonable and respectful enough to adhere to a joint custody award. Therefore, the superior court did not abuse its discretion in enforcing the custody agreement.
Proper Consideration of the “Change of Circumstances” Doctrine.
Charles also contends that the superior court erred in applying the “change of circumstances” doctrine to the custody agreement, since the court had not previ
*387
ously adopted the agreement. The change of circumstances doctrine states that a court will not modify a custody determination unless there has been a substantial change of circumstances that renders a change in custody in the best interests of the child.
Nichols v. Nichols,
Since the court should have been evaluat-' ing Wendy’s best interests as of the time of trial, there was no point in considering the change of circumstances doctrine. However, we conclude that the superior court’s reference to the change of circumstances doctrine constituted harmless error, since the court concluded that the agreement was in the best interests of the child at the time of trial.
The Superior Court’s Award of Principal Physical Custody to Dianne.
Finally, Charles argues that the superior court abused its discretion in awarding principal physical custody to Dianne. We do not agree. The record shows that both Charles and Dianne are capable, loving, and responsible parents. While Dr. Enter testified that if he had to choose one parent over another, he would choose Charles, he considered both parents to be fit and proper and approved of shared custody. Southworth declined to make any recommendation as to custody, but had problems with Charles’ credibility.
The evidence at trial was clear that both Charles and Dianne are very good parents and that Wendy’s best interests will be served by the shared custody arrangement adopted by the superior court.
The superior court judgment is AFFIRMED.
Notes
. AS 25.20.060 states in part:
The court shall award custody on the basis of the best interests of the child. In determining the best interests of the child, the court shall consider all relevant factors including those factors enumerated in AS 25.24.150(c).
The factors enumerated in AS 25.24.150(c) are:
(1) the physical, emotional, mental, religious, and social needs of the child;
(2) the capability and desire of each parent to meet these needs;
(3) the child's preference if the child is of sufficient age and capacity to form a preference;
(4) the love and affection existing between the child and each parent;
(5) the length of time the child has lived in a stable, satisfactory environment and the desirability of maintaining continuity;
(6) the desire and ability of each parent to allow an open and loving frequent relationship between the child and the other parent.
. AS 25.20.090 states:
Factors for consideration in awarding shared child custody. In determining whether to award shared custody of a child the court shall consider
(1) the child’s preference if the child is of sufficient age and capacity to form a preference;
(2) the needs of the child;
(3) the stability of the home environment likely to be offered by each parent;
(4) the education of the child;
(5) the advantages of keeping the child in the community where the child presently resides;
(6) the optimal time for the child to spend with each parent considering
(A)the actual time spent with each parent;
(B) the proximity of each parent to the other and to the school in which the child is enrolled;
(C) the feasibility of travel between the parents;
(D) special needs unique to the child that may be better met by one parent than the other;
(E) which parent is more likely to encourage frequent and continuing contact with the other parent;
(7) any findings and recommendations of a neutral mediator;
(8) whether there is a history of violence between the parents;
(9) other factors the court considers pertinent.
. AS 25.20.060 states:
Custody of a child, (a) If there is a dispute over child custody, either parent may petition the superior court for resolution of the matter under AS 25.20.060-25.20.130. The court shall award custody on the basis of the best interests of the child. In determining the best interests of the child, the court shall consider all relevant factors including those factors enumerated in AS 25.24.150(c).
(b) Neither parent, regardless of the question of the child's legitimacy, is entitled to preference in the awarding of custody.
(c) The court may award shared custody to both parents if shared custody is determined by the court to be in the best interests of the child. An award of shared custody shall assure that the child has frequent apd continuing contact with each parent to the maximum extent possible.
