At the age of 14, Derrick Hardaway confessed under police questioning to the murder of 11-year-old Robert Sandifer. An Illinois trial court denied Hardaway’s motion to suppress his confessions as involuntary, and he was convicted of the crime and sentenced to 45 years in prison. After exhausting his state court remedies, Hardaway filed a petition for a writ of habeas corpus. The district court granted the petition, finding that in light of Hardaway’s age, the lack of a friendly adult presence, and the length of the interrogation, Hardaway’s confession was involuntary and suppression was required. Because we reluctantly conclude that the Illinois courts’ application of the totality of the circumstances test to Hardaway’s confession was not an unreasonable application of clearly established Supreme Court precedent, we reverse the judgment of the district court. We do so, however, with the gravest misgivings and only in light of the stringent standard of review that applies under the applicable law, because we are convinced that the *760 many other indicia under Illinois law of the special care that must be exercised with children as young as 14 strongly suggests that an injustice was committed here.
I
On August 28, 1994, 11-year-old Robert “Yummy” Sandifer, a member of the Black Disciples street gang in Chicago’s Rose-land neighborhood, shot and killed 14-year-old Shavon Dean and wounded two other children. Sandifer himself then disappeared. An intensive police search for Sandifer ensued until Sandifer’s body was found under a viaduct at 108th Street and Dauphin Avenue shortly after midnight on September 1. He had been shot twice in the back of the head.
In the early morning hours of September 1, Cassandra Cooper telephoned the police and told them that Sandifer had been at her home around 11:30 p.m. the night before and that her daughter Jimesia saw Sandifer leave their porch with Hard-away and his older brother Cragg. At around 8 a.m., the police went to the Hard-away home. Hardaway was roused from sleep, told of the investigation, and, after conferring with his father, agreed to accompany the officers to the police station to help with the investigation. Harda-way’s father was offered a ride to the station but declined, choosing instead to wait for his son Cragg to return home. Hardaway dressed and was transported to the police station unhandcuffed and placed in an unlocked interview room at about 8:30 a.m.
Two detectives, Robert Lane and Romas Arbataitis, questioned Hardaway at that time. Hardaway admitted to knowing Sandifer but stated that he had last seen him three days earlier. The detectives then left the interview room and Arbataitis spoke to Jimesia, who confirmed her mother’s report that Sandifer and Hardaway had been together that very night. Jime-sia said that Hardaway had approached Sandifer and another boy, Mike Griffin, who were both sitting on the porch of her home, and told Sandifer “that he had to go with Derrick, that [Cragg] and the boys wanted to take him out of town.”
At about 10:30 a.m., the detectives interviewed Hardaway for a second time. This time they read him his Miranda rights and confronted him with Jimesia’s statements. Hardaway then changed his story, essentially admitting to Jimesia’s version of events. He said that Sandifer and Griffin followed him off the porch and went to a waiting car, driven by Cragg. Cragg then drove off with Sandifer while Harda-way and Griffin walked home. The detectives’ conversation with Hardaway lasted about 15 minutes and he was then left alone in the interview room. Over* the next six hours he was briefly questioned on matters such as the name of Cragg’s girlfriend, provided with lunch, and occasionally checked on. Most of his time, however, was spent alone.
During the afternoon, Griffin was located and interviewed by the police. He confirmed that he and Sandifer walked to Cragg’s car but stated that Hardaway had gotten into the car with Sandifer and that the brothers had refused to give Griffin a ride home because “they were in too deep.” At 4:30 p.m., two new detectives, John McCann and James Oliver, reiterated the Miranda warnings and then interviewed Hardaway, who repeated his story. McCann informed Hardaway that Griffin had said something different and walked him down the hall to show him that Griffin was in another interview room. At that point, Hardaway admitted that he did get into Cragg’s car with Sandifer and that he was present when Cragg shot Sandifer under the viaduct shortly thereafter.
*761 Questioning then ceased while an Assistant State’s Attorney, Theresa Harney, and a youth officer, James Geraci, were contacted. At approximately 7:00 p.m., McCann, Harney, and Geraci met with Hardaway. Harney told Hardaway that Geraci was a youth officer and that he was present as an observer and to assist Hard-away if he had any questions or problems. Geraci then asked Hardaway if there was anything he could assist him with, to which Hardaway responded no. From that point onward, Geraci did absolutely nothing to assist Hardaway. Harney read Hardaway his Miranda i-ights yet again and informed him again that he could be tried as an adult. Hardaway then explained his rights back to Harney in his own word,,, stating that he did not have to speak with Harney if he didn’t want to, that anything he told Harney she could tell a judge in a trial against him, that he could have an attorney there when he was questioned about the case, even if he or his family couldn’t pay for one, and that his case could be moved out of juvenile court to adult court if the judge decided.
Hardaway gave a statement to Harney in which he again confessed to the crime and then agreed to repeat the statement to a court reporter. Another break was taken until the court reporter arrived at 10:45 p.m. At that time, Hardaway admitted that he and Cragg had been ordered by the leader of the Black Disciples to get rid of Sandifer, that he approached Sandifer on the Coopers’ porch and brought him back to Cragg’s car, that he accompanied Cragg and Sandifer to the viaduct, and that he watched out for police while Cragg shot Sandifer.
The state courts found that Hardaway’s parents never tried to come to police headquarters to see their son, and Hardaway never asked for his parents or for an attorney. He was not physically abused or threatened by the detectives in any way. Hardaway had 19 previous arrests for charges including robbery, attempted criminal sexual assault, unauthorized use of a weapon, and delivery of a controlled substance, but he had never faced anything as serious as a murder charge. He had appeared in juvenile court with appointed counsel on seven occasions; there is no evidence, however, whether he had ever been advised of his Miranda rights on those occasions, and it appears that he had little or no experience in the adult criminal justice system.
Hardaway moved to suppress his confession. The trial court denied the motion, finding that the police had never prevented Hardaway from seeing his parents or an attorney; that a youth officer was present to assist Hardaway at his last two confessions; that there were no threats or abuse; that there was no evidence Hardaway suffered from any mental incapacity or handicap; and that he was already more familiar with the criminal justice system and with attorneys than most ordinary adult citizens would be in light of his numerous prior court referrals. It therefore found the confession to be voluntary under the totality of the circumstances. The Illinois Appellate Court affirmed and the Illinois Supreme Court denied review, leading to this timely petition for a writ of habeas corpus.
II
The Antiterrorism and Effective Death Penalty Act of 1996 (AEDPA), 28 U.S.C. § 2254, governs the grant of a writ of habeas corpus here, because Hardaway’s petition was filed after the effective date of that statute. Before a writ may issue, a federal court must find that the challenged state court decision is either “contrary to” or “an unreasonable application of’ clearly established federal law as determined by the Supreme Court.
*762
Williams v. Taylor,
The voluntariness of a confession, whether made by a juvenile or an adult, is evaluated on the basis of the totality of the circumstances surrounding that confession.
Schneckloth v. Bustamonte,
The district court had good reason for doing so, in that it relied on several Supreme Court decisions that had held that the Fifth Amendment rights of a juvenile had indeed been violated. In
Haley,
a 15-year-old boy was arrested at midnight and interrogated for five straight hours by six officers in relays of one or two officers at a time. At 5 a.m., after being falsely told that two other boys had implicated him, the defendant confessed.
Haley,
Gallegos,
in contrast, is closer to the mark. In that case, a 14-year-old boy was arrested on assault and robbery charges; he “immediately” admitted to the crime.
Gallegos,
In many respects, this case is quite similar to Gallegos. Like Gallegos, Hardaway was only 14 at the time of his arrest. He was questioned for a longer time than Gallegos before his first confession, and no friendly adult was present to explain his rights to him until many hours later (even if we assumed that the passive Geraci served that function). Thus, reading the Gallegos decision in isolation, we would likely affirm the district court’s judgment.
Later decisions, however, indicate that the mere absence of a friendly adult is by itself insufficient to require suppression of a juvenile confession. In
Fare,
the Supreme Court held that a totality of the circumstances analysis was adequate “to take into account those special concerns that are present when young persons, often with limited experience and education and with immature judgment, are involved.”
The Illinois state courts knew that they were supposed to apply a totality of the circumstances approach when evaluating Hardaway’s claims, and they claimed to have done so. The district court agreed that the state courts used the correct test (and thus were not acting “contrary to” applicable law), but that they did so unreasonably by failing adequately to consider three factors: Hardaway’s age; the de facto absence of a friendly adult; and the length and nature of the interrogation.
Age is clearly a relevant factor in this case, as it is in many areas of the law. Children under the age of 16 are treated
*764
differently from adults under Illinois law in a host of different ways. They may not marry, 750 ILCS 5/208, vote, 10 ILCS 5/3-1, serve on a jury, 705 ILCS 305/2, or make a will, 755 ILCS 5/4-1. Restrictions are placed on their ability to work, 820 ILCS 205/1, to smoke, 720 ILCS 675/1, to operate a motor vehicle, 625 ILCS 5/6-107, to withdraw from compulsory education, 105 ILCS 5/26-1, and to travel outdoors between midnight and 6:00 a.m., 720 ILCS 555/1. They cannot purchase airline tickets, 720 ILCS 5/10-8, consent to medical care, 410 ILCS 210/1, attend a raffle, 230 ILCS 15/4, or pierce their bodies, 720 ILCS 5/12-10.1, without parental permission. See also
United States v. Shannon,
The Constitution too affords children rights that cannot always be equated with those of adults. See,
e.g., Planned Parenthood of Cent. Mo. v. Danforth,
The difficulty a vulnerable child of 14 would have in making a critical decision about waiving his
Miranda
rights and voluntarily confessing cannot be understated. Indeed, Hardaway argues that we should interpret
Gallegos
to impose a
per se
rule that no child under the age of 16 may waive his rights or make a voluntary confession without a parent or guardian present. We consider this an extremely close question, but we conclude in the end that we are foreclosed from pursuing that path. In the first place, the
Fare
decision, decided nearly two decades after
Gallegos,
makes quite clear that all juvenile confessions are to be assessed under the totality of the circumstances standard, and that no one factor will be dispositive.
Fare,
Since the defendant in
Fare
was 16, it might be possible to impose a
per se
rule at a lower age, such as 14, or 10, or 5. Some state laws, such as those regarding employment, marriage, and operation of a motor vehicle, routinely make distinctions between those over and under age 16, and the Supreme Court has recognized such a distinction as a constitutional matter under the Eighth Amendment in regard to the death penalty. Compare
Stanford v. Kentucky,
Keeping Hardaway’s extreme youth in mind, we turn to the second factor in our analysis: the fact that there was no friendly adult presence to guard against undue police influence. Hardaway’s parents chose not to come to the station with him, and he never requested an attorney. The state courts did note that Youth Officer Geraci was present at the 7:00 and 10:45 p.m. statements, but we agree with the district court that this fact is meaningless. As far as the record shows, Geraci provided about as much assistance to Hardaway as a potted plant. (Although it is true that Geraci might have served as a substitute for a videotape, there is no assurance that he would have been as reliable as a tape, even acknowledging that tampering is a risk with tapes. Tampering of a sort can also happen with live witnesses, either unintentional or intentional: a person is subject to memory lapses, and could even have an incentive to support the police version of events.) When Geraci first entered the room he informed Hardaway that he was there to help him and would assist him if he had any questions. There is no difference between this statement and what any other police officer, such as the “good cop” in a good eop/bad cop routine, might say to a suspect. The fact that Geraci then remained mute while Harney and McCann questioned Harda-way at length further shows he was doing little more than fulfilling the minimum requirements imposed by state law. We wish to make it clear that a state-provided youth officer who .functions as nothing more than an observer will not be considered a friendly adult presence for purposes of the totality of the circumstances test.
Cf People v. McDaniel,
Despite this fact, the absence of a friendly adult at Hardaway’s confession cannot be deemed dispositive. “[Neither federal statutory nor constitutional law requires that a juvenile’s parents be notified prior to obtaining a confession.”
Stone v. Farley,
We therefore must operate under the following procedural framework: the mere fact that Hardaway was 14 and questioned without an adult present does not by itself render his confession involuntary, but it does require that a court conduct a searching review of the facts to ascertain whether any undue intimidation or other forms of pressure caused him to confess involuntarily. The district court identified only one such factor, the duration of the interrogation. Hardaway was initially brought to the police station at 8:30 a.m. and briefly interviewed. By 10:30 a.m. he was considered a suspect, had received his Miranda warnings, and had been questioned again for another 15 minutes, at which time he changed his story slightly. At that point he was left more or less alone for over five hours. At 4:30 p.m., Hardaway was notified that Griffin was telling police a different story, and he then confessed. That interrogation took about one hour. Another delay ensued while Harney was contacted, and she then joined the police in interrogating Hardaway from 7:00 to 8:00 p.m. Hardaway was detained again while a court reporter was located to take a transcribed statement from 10:45 p.m. until midnight. The statements made by Hardaway at 4:30, 7:00, and 10:45 p.m. were in all material respects identical.
It is thus somewhat misleading for Hardaway to contend that he was interrogated for 16 straight hours by “relays” of officers and deprived of sleep. We fail to understand why Hardaway should have been provided a place to sleep between the hours of 8:30 a.m. and 4:30 p.m. when most eighth graders would not be sleeping anyway. The mere fact that two officers questioned Hardaway twice in the morning and two different officers spoke to him at 4:30 p.m., with a total interrogation time prior to the initial confession of less than 90 minutes, presents a markedly different scenario from the five grueling hours of interrogation experienced in
Haley,
One could still argue that leaving a juvenile alone in an interrogation room for eight hours creates enough psychological pressure to render the confession involuntary. Obviously, adolescents are less mature than adults and perhaps such a time lapse, which we would expect an adult to weather, would instead render involuntary the confession of a child, especially one deprived of any adult assistance.
If we were a state appellate court, we might well find that on balance the psychological tension caused by leaving a boy of 14 alone in an interview room, hungry, scared, and tired, was enough to exclude the confession. But we may set aside the contrary findings of the Illinois trial and appellate courts only if their determination
*767
was unreasonable.
Williams,
First, Hardaway was not intimidated, abused, or physically coerced in any way. A photograph taken at the time of the confession substantiates this fact. Harda-way was not psychologically tricked into confessing by officers but only confronted with truthful contradictory evidence.
Second, Hardaway had extensive prior history with parts of the criminal justice system. Prior to the Sandifer murder Hardaway had been arrested 19 times between 1992 and 1994 and charged with four counts of battery, three counts of criminal trespass to vehicle, two counts of aggravated battery, two counts of robbery, criminal damage to property, attempted criminal sexual assault, disorderly conduct, assault, possession of a controlled substance, unauthorized use of a weapon, possession of marijuana, and delivery of a controlled substance. Three of the complaints were adjusted in complaint screening, and seven were station adjustments. Hardaway had been placed on juvenile supervision, but had violated that supervision. Seven times Hardaway had appeared in juvenile court with appointed counsel. As the state courts recognized, past brushes with the law weigh against the normal presumption that youths are specially sensitive to coercion.
Wilderness,
It is true that there is no evidence that Hardaway had ever received Miranda warnings at any of these 19 arrests. However, based on the seriousness of the charges in many of those counts, we cannot conclude that the circuit court was unreasonable in weighing Hardaway’s frequent police encounters and general familiarity with the criminal justice system in favor of the confession’s voluntary nature.
Finally, Hardaway appeared to law enforcement officials to understand his rights when they were read to him. At the beginning of his court-reported statement he claimed to understand those rights and waived them. He also explained his rights back to Harney in his own words. To Hardaway, the right to silence meant “he didn’t have to talk if he didn’t want to.” Hardaway also stated that anything he told assistant state’s attorney Harney she could tell a judge in a case against him. As for the right to an attorney, he said that this meant that he could have a lawyer there when Harney questioned him about the case, and he could have one even if he and his family could not pay for one. This recitation indicates that there was adequate support for the state court finding that Hardaway did have at least a basic comprehension of his rights. As the trial judge noted, there is no indication that Hardaway, whose test scores showed an IQ of 95 and the educational performance of an average sixth-grader, had mental incapacities or other infirmities that would make him incapable of understanding his rights. See
Rice v. Cooper,
There is no doubt that Hardaway’s youth, the lack of a friendly adult, and the duration of his interrogation are strong factors militating against the voluntariness of his confession; indeed, it seems to us that on balance the confession of a 14-year-old obtained in those circumstances may be inherently involuntary. Nevertheless, the weighing of factors under the totality of circumstances test is a subject on which reasonable minds could differ. Here the trial court stated that it weighed ‘all relevant factors, and after doing so it
*768
concluded that the lack of any apparent coercion by the police, Hardaway’s recitation of his rights, his mental capacity, and his past experience with the criminal justice system on balance rendered his confession voluntary and admissible. Even assuming that the weighing of factors by the Illinois state courts in this case was incorrect, the balance is close enough that, in the final analysis, it is not unreasonable.
Williams,
Ill
Because the determination of the Illinois courts that Hardaway’s confession was voluntary under the totality of the circumstances was not an unreasonable application of clearly established federal law, the district court should not have granted the writ of habeas corpus. For the foregoing reasons, the judgment of the district court ÍS REVERSED.
