The details of the struggle are explicit in the "Bibliotheca": realizing that he could not defeat the Hydra in this way, Heracles called on his nephew Iolaus for help. His nephew then came upon the idea (possibly inspired by Athena) of using a firebrand to scorch the neck stumps after each decapitation. Heracles cut off each head and Iolaus cauterized the open stumps. Seeing that Heracles was winning the struggle, Hera sent a giant crab to distract him. He crushed it under his mighty foot. The Hydra's one immortal head was cut off with a golden sword given to Heracles by Athena. Heracles placed the head—still alive and writhing—under a great rock on the sacred way between Lerna and Elaius, and dipped his arrows in the Hydra's poisonous blood. Thus his second task was complete.