<P> The inmates at Camp Green Lake are forced to dig cylindrical holes five feet deep and five feet wide, which the warden says "builds their character ." They are promised the rest of their day off if they find anything that the Warden considers "interesting". Stanley finds a fossil, but Mr Pendanski tells him that the Warden "isn't interested in fossils", leading Stanley to suspect they are looking for something in particular . During one dig, Stanley finds one of Barlow's lipstick tubes (though he doesn't recognize it for what it is), but he pawns it off to X-Ray, the ringleader of Tent D, who convinces him that he deserves it more than Stanley . The Warden is excited by the discovery and orders them to greatly enlarge X-Ray's hole (the wrong hole) and to sift through the dirt from it for several weeks . </P> <P> Meanwhile, Stanley and Zero, the smallest inmate in Tent D, who got his nickname because "he has nothing in his head", become friends . Stanley agrees to teach Zero how to read, and in return, Zero digs Stanley's hole part of the time . The other boys eventually become jealous after seeing Stanley getting help, eventually resulting in a fight . The Warden and the staff arrive and, learning that Zero has been assisting Stanley with digging in return for receiving education, mock him . The argument culminates in Zero angrily hitting Mr. Pendanski with a shovel and running away, and the camp staff decide to erase their records of him and let him die in the desert . A few days later, Stanley follows Zero and finds him living under the remains of Sam's boat, eating very old jars of Kate's spiced peaches, which he calls "Sploosh". Stanley notices a mountain resembling a human fist giving the thumbs up sign, and recalls that Stanley Yelnats I claimed to find "refuge on God's thumb". On the mountain, Zero admits that he was the one who stole "Sweet Feet" Livingston's shoes . </P> <P> Atop the mountain, Stanley discovers a field of onions that was once Sam's . The boys eat the onions and find water by digging in the ground, and Stanley sings Madame Zeroni's song to Zero, Zeroni's descendant, unknowingly breaking the curse . Stanley suggests that they return to the hole where Stanley found the lipstick to find the buried treasure . They find a suitcase buried in the hole, but they are captured by the Warden, and surrounded by a group of lethal yellow - spotted lizards . A stalemate develops: they cannot move, but the lizards prevent the Warden's staff from approaching them . The lizards do not bite Stanley and Zero because they are repelled by the onions the boys have been eating . They remain in the hole until the next morning, when an attorney arrives demanding Stanley's release, having received testimony that gives him an alibi during the time the shoes were stolen . The Warden tries to claim they stole the suitcase from her, but Zero reveals that the name' Stanley Yelnats' is written on it, as the suitcase had belonged to Stanley's great - grandfather . Fearing that the warden will kill Zero if he leaves him behind, Stanley refuses to leave the camp unless Zero can come along . The attorney orders the Warden to get Zero's file, but the camp staff are naturally unable to find it, and Zero is also released . </P> <P> Stanley's family open the case, discovering the jewels, deeds, stocks and promissory notes stolen from Stanley Yelnats I. Using the money raised from the bonds, Stanley's family buys a new house and Zero hires a team of investigators to find his missing mother; meanwhile, the drought at Green Lake is brought to an end by rainfall . The family's luck seems to change as if in response to Stanley's fulfillment of his ancestor's promise (a suggestion left purposely ambiguous by the narration). In a final scene, Clyde Livingston and his wife, along with the Yelnats and Zeroni families, celebrate the success of Stanley's father's antidote to foot odor, composed of preserved and fermented spiced peaches and onions and named "Sploosh" by Zero . The Warden is forced to sell Green Lake to "a national organization dedicated to the well - being of young girls", which turns it into a Girl Scout camp . </P>

Why did the treasure have stanley yelnats name on it