indeed the allusion to the more renowned worm killed by the walsing is sufficient indication that the poet selected a dragon of well-founded purpose ( or saw its significance in the plot as it had reached him ) , even as he was careful to compare his hero , beowulf son of ecgtheow , to the prince of the heroes of the north , the dragon-slaying walsing .