Please answer a question about the following article about Hellenistic period:

Philip V, who came to power when Doson died in 221 BC, was the last Macedonian ruler with both the talent and the opportunity to unite Greece and preserve its independence against the "cloud rising in the west": the ever-increasing power of Rome. He was known as "the darling of Hellas". Under his auspices the Peace of Naupactus (217 BC) brought the latest war between Macedon and the Greek leagues (the social war 220-217) to an end, and at this time he controlled all of Greece except Athens, Rhodes and Pergamum.

Who took control when Doson died?
Philip V