delivered the opinion of the court:
This case involves a custody dispute between the natural mother of a minor child and the maternal grandfather of the child. The circuit court of Marshall County entered an order awarding custody of the child to the maternal grandfather, Kenneth Henkins. The mother, Sherry Snow, appeals from that order.
Sherry at age 20 and unmarried gave birth to a daughter, Carrie Ann Henkins, on October 14, 1975, who is the subject of the custody dispute. After her birth the child, Carrie, was taken to the home of her grandparents, Mr. and Mrs. Kenneth Henkins. The home is near Lacón, Illinois, and with the exception of brief periods of time Carrie has always been with the Henkins. The mother, Sherry, also returned to her parents’ home, but off and on absented herself for long periods of time, leaving her whereabouts unknown. The mother, Sherry, testified that while living with her parents she took care of Carrie by bathing, feeding and playing with her. She did admit that on occasions *667she left her parents’ home taking Carrie with her and that she did not inform her parents of her whereabouts because it was none of their business.
During one of the absences Mr. Henkins found his daughter, Sherry, and Carrie living at the Lacón Marina in a camping trailer. Mr. Henkins testified that the trailer was unheated and the temperature was in the 40’s. Sherry’s testimony was to the contrary in that she stated that she and Carrie stayed at the Marina in the summertime. Mr. Henkins further testified that on another occasion he found Sherry and Carrie at the Nighsonger residence, which was completely run down and dirty and had no modern facilities. Sherry’s testimony was to the contrary. She stated that she only visited the Nighsonger residence occasionally.
Sherry moved out of her parents’ home in June or July of 1978 and in August of that year she married Dennis Snow. It was Sherry’s testimony that she left Carrie with her parents until she and her husband were better situated financially.
In May of 1979 Sherry and her husband moved into a two-bedroom trailer. The Henkins refused to return Carrie to her mother because they did not believe that she and her husband were financially able to care for her. At this time Dennis Snow was earning from $150 to $165 per week. For a portion of the time the trailer was without heat or electricity.
In November 1979, Carrie, while visiting her mother, suffered a severe burn on her leg when a coffee pot was accidentally overturned. As the result of this injury Carrie underwent two skin graft operations. Sherry testified that no more skin graft operations would be needed, while her grandfather testified that he believed more would be needed, but Carrie’s doctor would not make that decision for another six months. The pertinence of this testimony concerns medical insurance coverage. The grandfather, Henkins, is a longtime employee of Caterpillar Tractor Company, and Carrie is covered by his extensive medical policy with that company.
In July of 1981 Dennis Show was charged with driving while intoxicated. A friend, George Pelphrey, posted bail and offered Dennis a job at his bait and tackle business if Dennis would stop drinking. According to Sherry, Dennis and the Pelphrey’s, Dennis did stop drinking, is employed by Pelphrey and is earning $150 per week take home pay. Shortly before the custody hearing Sherry and Dennis moved into a residence with the Pelphrey’s where with Carrie they were to have the use of two bedrooms and were to share the use of the kitchen and living room. The Pelphrey’s have four children.
*668The facts when analyzed disclose that when Sherry married Dennis Snow she voluntarily left Carrie with the Henkins for a period in excess of two years. The custody action was prompted when Sherry removed Carrie from school near the end of a school term and without prior notification to the Henkins.
The record further establishes that there has been occasional domestic violence between Sherry and Dennis and that Dennis Snow has failed to support children of his from a prior marriage.
This action was commenced when the grandfather sought to obtain the return of Carrie by petitioning the court for a writ of habeas corpus. The court ordered the writ to issue and later entered a temporary custody order placing Carrie with her grandparents. Dennis and Sherry obtained the services of an attorney from legal aid and filed a counterpetition for child custody and a response to the petition for writ of habeas corpus. As previously set forth, the custody of Carrie was awarded to the maternal grandfather, Kenneth Henkins.
The Snow’s first assign as reversible error that the trial court failed to use the proper standard in determining the right to custody of the minor child.
It is the contention of the Snow’s that the superior-right doctrine should have been applied, the effect of which is to recognize that there is a presumption that a natural parent has a superior right to custody of a child over the claim of a third party. In support of this agreement the Snow’s cite the case of In re Custody of Townsend (1981), 86 Ill. 2d 502, 427 N.E.2d 1231. The facts in Townsend are too bizarre to be in any way equated with the facts in the instant case. In Townsend the natural father prevailed in a custody dispute with the stepdaughter of the child’s mother. The mother had been convicted of murdering the wife of the natural father. The reviewing court in Townsend did give lip service to but not full blessing to the superior right doctrine relied on by the Snow’s in the instant case. In Townsend the court stated:
“In child-custody disputes it is an accepted presumption that the right or interest of a natural parent in the care, custody ánd control of a child is superior to the claim of a third person. The presumption is not absolute and serves only as one of several factors used by courts in resolving the ultimately controlling question of where the best interests of the child lie. (See People ex rel. Edwards v. Livingston (1969), 42 Ill. 2d 201; [citations].)” 86 Ill. 2d 502, 508, 427 N.E.2d 1231, 1234.
We note that the case of Townsend cites the case of People ex rel. Edwards v. Livingston (1969), 42 Ill. 2d 201, 247 N.E.2d 417. In *669 Livingston our supreme court in a habeas corpus proceeding instituted by a natural father held that the natural father was not upon the death of natural mother entitled to custody as against maternal grandfather with whom the minor child had been living for 11 years. The supreme court held that to be determined is what is in the best interests of the child. In Livingston the court stated:
“The best interest of the child is the standard and it is not necessary that the natural parent be found unfit or be found to have legally forfeited his rights to custody, if it is in the best interest of the child that he be placed in the custody of someone other than the natural parent. See Giacopelli v. The Florence Crittenton Home, 16 Ill. 2d 556; 67 C.J.S. Parent and Child sec. 11; 27 Am. Jur., Infants sec. 108; and also see Halstead v. Halstead, 259 Iowa 526, 144 N.W.2d 861.
Again, in Giacopelli at page 565 we stated: ‘The parent need not be shown to be totally unfit to rear the child in order to deny to him the custody of the child. Fitness of the parent is only one of the factors to be considered in determining how the best interest of the child may be served. The sufficiency of the parents’ home, its surroundings, and all other matters that have a bearing upon the welfare of the child are to be considered. (People v. Weeks, 288 Ill. App. 262.) The parents’ natural rights must give way to the welfare and best interest of the child.’ ” 42 Ill. 2d 201, 209, 247 N.E.2d 417, 421.
This court has recognized and followed “the best interest rule.” (See Look v. Look (1974), 21 Ill. App. 3d 454, 315 N.E.2d 623, Barclay v. Barclay (1978), 66 Ill. App. 3d 1028, 384 N.E.2d 564.) In the case of Look this court made the following observation:
“In proceedings affecting the custody of a child, the primary consideration is the present and prospective welfare of the child, or, as otherwise stated, the best interests of the child. Naturally, no hard-and-fast rule can be laid down as to what will best serve the welfare and interests of a child. Each case must be determined according to its own circumstances and the question rests largely in the sound discretion of the trial court. When the people having the actual custody of the child at the time a change is sought have properly provided and supervised its needs for a substantial period of time and the child has become attached to the environment and to the grandparents who have made possible the happiness, security and comfort of its early years, a court is not justified in transferring that custody to another, except for the most cogent reasons. When people, *670through the goodness of their hearts, take a child into their home and lavish on it their affection and care, they are entitled to much consideration in an action involving the custody of such child. Jarrett v. Jarrett, 348 Ill. App. 1, aff’d 415 Ill. 126.” 21 Ill. App. 3d 454, 457-58, 315 N.E.2d 623, 625-26.
We set forth the foregoing language from the case of Look since the same is applicable to the situation presented in the instant case. Carrie, the minor child, was six years of age when the custody hearing was held by the trial court. The Henkins provided the care for Carrie throughout this six-year period. They provided for the needs of the child including extensive medical care. We cannot conclude that Carrie would have an environment of stability and security such as she has enjoyed with her grandparents. The trial court determined that the best interests of Carrie would be served by permitting her to remain with her grandparents, and the record in this case does not provide compelling reasons why the trial court’s determination should not be upheld.
Having reached this determination, it is not necessary that other issues raised in this appeal be considered.
For the reasons set forth the judgment of the circuit court of Marshall County is affirmed.
Affirmed.
ALLOY, J., concurs.