The reason the plot of the fairy tale wasn't used for the movie may have had something to do with the fact that in the original fairy tale, there are some 42 murders; the first is Ali Baba's cousin, and the other 41 are those of the 40 thieves themselves and, later, their ringleader, who arrives at Ali Baba's disguised as a merchant and thirsting for revenge. He is the last of the Forty Thieves to die. The others die when, after smuggling themselves into Ali Baba's house in wine casks, boiling hot water is poured into each of the casks containing a bandit.