The hermit knew that the bird was the reincarnated form of Uaey. So he used mantra to transform her into human form. After that, he drew a picture of a child and made him alive to be Uaey's child. When the child had grown up, he wanted to find his father. So Uaey related the whole story to him and made a garland for the king.