 Aladdin's personality was rewritten to be "a little rougher, like a young Harrison Ford," and the parrot Iago, originally conceived as an uptight British archetype, was reworked into a comic role after the filmmakers saw Gilbert Gottfried in "Beverly Hills Cop II", who was then cast for the role.By October 1991, Katzenberg was satisfied with the new version of "Aladdin".As with Woolverton's screenplay, several characters and plot elements were based on the 1940 version of "The Thief of Bagdad", though the location of the film was changed from Baghdad to the fictional Arabian city of Agrabah.