The dodo has spent more than 300 years being called foolish, but scientists say it deserves an apology.

Researchers used CT scans — the same kind of 3D X-rays doctors use on patients — to peer inside all three dodo skulls that still exist anywhere in the world. What they found overturns centuries of bad press.

The team, working with collaborators in Canada, Australia, Europe, the United States and the United Kingdom, carefully mapped the inside of each skull to recreate the bird's brain. They compared their findings to living pigeons and found something surprising: the dodo's brain was built very much like its modern relatives. Its forebrain, the area linked to thinking and memory, was proportional to other pigeons.

In other words, the dodo was probably just as smart as the pigeons you might see in a city park.

So where did the idea that dodos were stupid come from? Partly from a Swedish naturalist named Carl Linnaeus, who in the 1700s gave the species the scientific name Didus ineptus — Latin for "foolish" or "inept." That reputation stuck.

But the researchers say dodos were simply living without fear on their island home of Mauritius. Animals that have never seen predators often seem tame, because they have no reason to run. When sailors arrived and started killing them, the dodos had no experience to draw from. That trust, the scientists argue, looked like stupidity to people who didn't understand what they were seeing.

The study also uncovered a surprise about the dodo's senses. The bird's optic lobes — the brain region that first handles what the eyes see — were unusually small. This is strange, because most birds that live in open daylight have large optic lobes.

Small optic lobes show up in birds built for low light, like owls, kiwi birds, and Australia's rare night parrot. These animals see best at dawn, dusk, or even nighttime. The scientists think the dodo may have done most of its foraging when the sun was low, perhaps moving through Mauritius's dim forests at sunrise or sunset.

Why would a dodo venture out in the dark? The island was home to giant tortoises that ate the same fruits and plants. By shifting their active hours, dodos may have avoided competition and stayed cooler in the tropical heat.

The researchers say this changes how we picture the dodo. Instead of a clumsy daytime bird wandering into danger, we might imagine a clever creature, brain working just like a pigeon, navigating shadowy forests with the light of early morning. The dodo's story ends in tragedy — gone within decades of human arrival — but its reputation, at last, is getting a second look.