In the neo-noir thriller "Collateral" (2004), alongside Jamie Foxx and Tom Cruise, Pinkett Smith obtained the role of a U.S. Justice Department prosecutor and the target of a contract killer. The film was a critical and commercial success, grossing US$217.8 million worldwide. She voiced Gloria, a strong, confident, but sweet hippopotamus, in the computer animated film "Madagascar" (2005). Tom McGrath, one of the film's directors, stated they found all these traits in her voice when they listened to her. Despite a mixed response from critics, the film was a commercial success, earning US$532 million worldwide, making it one of the biggest hits of 2005. In 2007, she played the wife of an affluent dentist in the drama "Reign Over Me", with Adam Sandler, Don Cheadle, Liv Tyler, and Donald Sutherland. "Entertainment Weekly" described the film as a "strange, black-and-blue therapeutic drama equally mottled with likable good intentions and agitating clumsiness", and found Pinkett Smith to be "graceful" in it.