family. Seokpum was able to escape and run all the way to the Baekje border but the thought of his wife made him come back after exchanging clothes with a woodcutter, he was then arrested by the soldiers that were waiting for him at his house and was executed later on. On that same year, King Jinpyeong sent two beautiful women from Silla to the emperor of Tang, but they were sent back to Silla. Year 632, King Jinpyeong died at age of 66 after reigning Silla for 53 years. He was succeeded by his daughter Kim Deokman, who became Queen Seondeok later on, the first female ruler of Korea. Reforms King Jinpyeong continued to restructure and reorganize during his reign; in 581 he set up Wihwabu (hangul:위화부, hanja:位和府), an administrative department for managing government officials and personnel, and in 583 Seonbuseo (hangul:선부서, hanja:船府署), a department for the management of the country's navy. He established an independent era reign name in 584, the department Jobu (hangul:조부, hanja:調府) to oversee taxes and obligatory labor, and Seungbu (hangul:승부, hanja:乘府) to manage transport wagons and coaches. Three officials were appointed to manage the major three palaces in 585, and in 586 the department Yebu (hangul:예부, hanja:禮部) was established to oversee rituals and ceremonies. In 588, he placed Ichan Sueulbu (hangul:이찬 수을부, hanja 伊飡 首乙夫) as the highest government official of Sangdaedeung, and a special department that looked after foreign diplomats, Younggaekbu (hangul:영객부, hanja:領客府), was set up in 591. The King also made reforms in the regional counties and prefecture system. A new district, Bukhansanju (hangul:북한산주, hanja:北漢山州), was created in preparation against attacks from Goguryeo in 604, and in 614 Ilseonju (hangul:일선주, hanja:一善州) was formed in preparation against Baekje. In 622, King Jinji's son Kim Yong Chun was appointed as the first Naeseongsasin (hangul:내성사신, hanja:內省私臣), the official who managed the three major palaces. The reforms continued with the department of the Palace Guards Siwibu (hangul:시위부, hanja:侍衛府); the department Sangsaseo (hangul:상사서, hanja:賞賜署), which looked after national heroes and their families; and Daedoseo (hangul:대도서, hanja:大道署) which oversaw affairs regarding Buddhism. Buddhism and relations with China King Jinpyeong was a fervent advocate for Buddhism, and many monks made travels to China during his rule while serving diplomatic roles. The monk Jimyeong (hangul:지명, hanja:智明) who went to China's Chen dynasty in 585 to study Buddhism returned in 602 with emissaries, and the monk Wongwang (hangul:원광, hanja:圓光), who had