After a short jury trial, John Stotler was found guilty on two counts: attempted possession of a listed chemical — pseudoephedrine — with intent to manufacture methamphetamine, in violation of 21 U.S.C. §§ 846 and 841(c)(1), and possession of methamphetamine with the intent to distribute, in violation of 21 U.S.C. § 841(a)(1) and (b)(1)(C). He was sentenced to a term of 110 months. On this appeal, Stotler argues that the district court erred when it denied his pretrial motion to suppress evidence seized from a search of his truck and when it allowed the government to put some Rule 404(b) evidence before the jury. We start with the facts.
Beginning in 2006, law enforcement officers in the area of Quincy, Illinois, had information regarding Stotler’s involvement in the manufacture of methamphetamine. They knew that in 1999 he was convicted in California of manufacturing methamphetamine. Also, in early 2006, officers responded to a report of shots fired at Stotler’s residence. After arriving at his home, officers observed several items known to be used in the methamphetamine-making business: over 100 pseudoephedrine pills hidden in an oven, a scale, lithium batteries, sulfuric acid, salt, and one gallon of Coleman camping fuel. They also found glass vials containing methamphetamine residue.
With this information, law enforcement tabbed Stotler as a meth-maker-dealer— and they kept their eyes on him. When the heat is on, most people curtail, or at least slow down, their illegal activity. But Stotler decided to put another item in law enforcement’s growing basket of evidence against him. He opted to purchase enough pseudoephedrine (the number one ingredient necessary for making meth) to choke a horse.
Illinois law prohibits a person from purchasing more than a small amount of pseudoephedrine during any 30-day period without a prescription. In addition, federal law prohibited possessing any amount of pseudoephedrine with the intent to use it for making methamphetamine. To comply with state law, over-the-counter distributors of pseudoephedrine are required to *938document their sales to individual customers. This documentation includes a requirement that the customer produce a photo ID and provide personal information when making a purchase of pseudoephedrine.
During a less-than-30-day period between April and May 2006, Stotler purchased more than the maximum amount of pseudoephedrine permitted under Illinois law. Specifically, on April 19, 2006, he purchased 2,400 milligrams of pseudoephedrine from a Wal-Mart store, and on May 15 and May 17 he purchased 2,400 milligrams and 2,880 milligrams of pseudoephedrine from two Walgreens stores. The Walgreens stores and the Wal-Mart were located in the Quincy area.
On August 15, 2006, an Illinois state judge issued an arrest warrant for Stotler charging him with possessing an excessive amount of pseudoephedrine. The warrant remained outstanding as of April 20, 2007. All this information was in law enforcement’s basket when a chap named Michael Childress got involved in the case.
On April 19, Childress was acting as a confidential source for law enforcement officers. He advised an officer that he was in contact with Stotler and that Stotler wanted to purchase pseudoephedrine. The officer instructed Childress to tell Stotler that he (Childress) had 1,500 pills available for sale at a price of $600. Later that day, Childress told the officer that he had talked with Stotler, who said he would buy the pills. According to Childress, Stotler said he would be at Childress’s home in Quincy the following day to do the deal. At that time, Stotler lived some 35 miles outside of Quincy.
With this information, officers made arrangements to have Childress sell pseudoephedrine to Stotler. The next day, April 20, officers met with Childress at his residence and gave him 1,500 pseudoephedrine pills. Childress was instructed to sell the pills for $600 and to contact officers by phone after the deal went down. Officers then maintained surveillance of Childress’s residence while waiting for Stotler to arrive.
Just as Childress said, Stotler arrived at the appointed time and place in a GMC pickup truck that afternoon. One officer observed Stotler and Childress meeting and talking outside the residence. Shortly thereafter, officers saw Stotler return to his pickup and start to leave. He was then stopped by officers within 100 feet of Childress’s house.
After getting out of the truck, Stotler was directed by officers to put his hands above his head, but he refused. An officer then pinned him against the truck, advised him of the outstanding arrest warrant, and directed him to place his hands behind his back. Stotler again refused. He was then forced to the ground and handcuffed.
During a search of his person, officers seized $600 from his right front pocket and $250 from his left front pocket. They also searched the cab of Stotler’s truck and seized a plastic baggie containing Hydrocodone pills (a controlled substance) from inside the glove compartment. Officers then searched the bed of the truck where they found a paint gun bearing Stotler’s initials. Inside the gun were two plastic baggies containing approximately 8 grams of methamphetamine and one baggie containing a powdery substance labeled as “cut,” an apparent reference to a common substance used in the distribution of narcotics. Finally, officers seized a small bag, located near the paint gun, that contained a digital scale. These events led to the charges against Stotler in federal court.
Once charged, Stotler filed a motion to suppress the evidence obtained from the search of his pickup truck. Following an *939evidentiary hearing, a magistrate judge recommended that the motion be denied. In his recommendation, the judge concluded that the search of the truck was valid based on the existence of probable cause at the time Stotler arrived at Childress’s residence and, alternatively, that the evidence seized during a search of the cab of the truck as incident to the defendant’s arrest provided probable cause to search the bed of the truck.
The district judge adopted the magistrate judge’s recommendation and denied the motion. Her only disagreement with the magistrate was that she concluded that probable cause existed to search the truck when Stotler drove away from Childress’s residence, not when he initially arrived on the scene.
Stotler relies, for the most part, on Arizona v. Gant, — U.S.-, 129 S.Ct. 1710, 173 L.Ed.2d 485 (2009), which was decided 10 months after he went to trial. He says Gant supports his argument that the evidence seized from his pickup truck should have been suppressed.
In Gant, the defendant (Rodney Gant) was arrested for driving with a suspended license. He was handcuffed and locked in the back of a patrol car. Police officers then searched his car and discovered cocaine in the pocket of a jacket on the back seat. Because Gant did not have access to his car to retrieve weapons or evidence at the time of the search, the Supreme Court held that the search-incident-to-arrest exception to the Fourth Amendment’s warrant requirement, as defined in Chimel v. California, 395 U.S. 752, 89 S.Ct. 2034, 23 L.Ed.2d 685 (1969), and applied to vehicle searches in New York v. Belton, 453 U.S. 454, 101 S.Ct. 2860, 69 L.Ed.2d 768 (1981), did not justify the search of the car. His case, Stotler maintains, is indistinguishable from Gant. We disagree.
In Belton, the Supreme Court said, “when a policeman has made a lawful custodial arrest of the occupant of an automobile, he may, as a contemporaneous incident of that arrest, search the passenger compartment of that automobile.” 453 U.S. 454, 460, 101 S.Ct. 2860, 69 L.Ed.2d 768 (1981). Gant backed off a bit from Belton and held that “[pjolice may search a vehicle incident to a recent occupant’s arrest only if the arrestee is within reaching distance of the passenger compartment at the time of the search or it is reasonable to believe the vehicle contains evidence of the offense of arrest.” — U.S. -, 129 S.Ct. 1710, 1723, 173 L.Ed.2d 485 (2009).
In Gant, the only thing the police knew about the defendant when they saw him driving his car was that he had a suspended driver’s license. He was stopped, arrested, removed from his vehicle, handcuffed, and locked in the back seat of a prowler. And then the police searched his car. No independent probable cause to search the car existed when it was searched. Stotler’s stop, on the other hand, was quite different. It was the culmination of an investigation that included many facts. His is a true “totality of the circumstances” case. What did the police know? Although we have mentioned most of this already, they knew an awful lot about Stotler when he was stopped. In order, they knew: that Stotler was convicted of manufacturing meth in 1999; that he was subsequently involved in the manufacture of meth based on the seizure of materials used to manufacture it from his residence in January 2006; that he purchased a lot of pseudoephedrine in April and May 2006; that he drove his truck some 35 miles that afternoon to arrive, just as Childress said he would, to purchase 1,500 pseudoephedrine pills; that he left soon after meeting with Childress; and that he resisted arrest when stopped, most likely because he had something to hide. *940Given these facts, we think the officers had probable cause to believe that the truck contained, at the very least, evidence of something that could be used in manufacturing methamphetamine.
Two things, arguably, point the other way. First, the police didn’t get a phone call from Childress telling them that the deal went down. But that can be explained because the “meeting” went quickly, and it took place outside, not inside, Childress’s home. Plus, Stotler tried to drive away soon after conversing with Childress. That there was not enough time for Childress to get off a call is just as likely as the conclusion that Stotler got cold feet before doing the deal. Stotler also says that once the police found $600 (six $100 bills) on his person they should have known that the deal with Childress did not go down. Although we acknowledge that the point is certainly logical, it’s not the only inference — perhaps Stotler had $1,450 on him when he arrived to meet with Childress, not just $850.
True, as our dissenting colleague notes, Stotler was arrested on the August 15, 2006 state warrant. That, however, doesn’t detract from the fact that the officers also had probable cause to arrest him (and search his truck) for engaging in what certainly looked like an illegal pseudoephedrine transaction. That Childress later reported, after the arrest and search, that the deal didn’t go down as planned because Stotler wanted to check out the ingredients in the pills at a Wal-Mart before coughing up $600 for them, doesn’t dilute the probable cause that existed.
Considering the totality of the circumstances, we think the district judge was correct when she found that probable cause existed to search the truck because it was reasonable to believe that it contained evidence of, at the very least, an attempt to possess materials (pseudoephedrine) needed for making meth. Because probable cause existed, the search of the truck, both cab and bed, was authorized under the automobile exception to the warrant requirement. See United States v. Ross, 456 U.S. 798, 820-21, 102 S.Ct. 2157, 72 L.Ed.2d 572 (1982). That rule, recalled in Gant, remains unchanged. The legality of the search here need not rest on the “search incident to arrest” exception to the warrant requirement.
To all this, we add a final point. The inevitable discovery doctrine holds that even an illegally seized item need not be suppressed if the government can prove by a preponderance of the evidence that the officers would have discovered it by lawful means.1 Nix v. Williams, 467 U.S. 431, 104 S.Ct. 2501, 81 L.Ed.2d 377 (1984). See also United States v. Marrocco, 578 F.3d 627 (7th Cir.2009). If the police had not searched Stotler’s pickup when they did, the evidence would have undoubtedly been discovered a little later. Obviously, with Stotler in custody, he was not going to be allowed to get in his truck and drive away. Also obviously, the arresting officers would not have allowed the truck to just sit on the street after Stotler was carted away. What they would have done, in all likelihood, was impound the truck and have it towed away. An inventory search would have naturally followed; the evidence would have been inevitably dis*941covered. That said, we move to the 404(b) matter.
Back in 2005, a detective with the Scott County, Iowa, sheriffs office responded to a call from a representative of a Target store in Davenport, Iowa, concerning a man who had just purchased a large amount of pseudoephedrine. The detective was given a description of the man and his car. Officers subsequently located the car in a Walgreens parking lot in Davenport. Cheryl Flesner was alone in the car. The detective entered the store and observed Stotler purchase two boxes of pseudoephedrine. Stotler then returned to his car, and he and Flesner drove to another Walgreens store in Davenport. Upon arrival there, Flesner entered the store and Stotler remained outside. She returned to the car a few minutes later. Stotler and Flesner then traveled to a third Walgreens store. This time Stotler entered the store while Flesner waited outside. The detective followed Stotler into the store and again observed him purchase two boxes of pseudoephedrine. After they left the store and headed toward the Illinois state line, officers initiated a traffic stop and obtained Stotler’s consent to search the car.
During the search of the car, officers seized a map of the Davenport area, which highlighted the location of the Walgreens stores Stotler and Flesner had just visited. In addition, officers seized a notebook which contained addresses of two other Walgreens stores. Finally, officers seized numerous packages of pseudoephedrine, receipts for their purchase, approximately 514 pseudoephedrine pills (totaling approximately 30.6 grams), some of which had been removed from the packaging, an eight-pack of lithium batteries, and a smoking-pipe from Flesner’s purse. A security video, later retrieved from the Target store, showed that Stotler and Flesner made individual purchases of pseudoephedrine and walked out of the store separately.
This was the 404(b) evidence the judge allowed the jury to hear. The rule provides that evidence of prior acts is admissible to prove “motive, opportunity, intent, preparation, plan, knowledge, identity, or absence of mistake or accident,” but not to prove a defendant’s character in order to show he acted in conformity with the charged offense. We apply a four-part test to decide whether Rule 404(b) evidence was properly admitted and will find no error if:
(1) the evidence is directed toward establishing a matter in issue other than the defendant’s propensity to commit the crime charged; (2) the evidence shows that the other act is similar enough and close enough in time to be relevant to the matter in issue; (3) the evidence is sufficient to support a jury finding that the defendant committed the similar act; and (4) the evidence has probative value that is not substantially outweighed by the danger of unfair prejudice.
United States v. Vargas, 552 F.3d 550, 554 (7th Cir.2008). And we think it’s not even a close question: the Iowa evidence clearly passed the test. It was admissible for whatever bearing it might have on a crucial issue in this case — Stotler’s intent on April 20, 2007.
For these reasons, the judgment of the district court is Affirmed.
. Concerning inevitable discovery, our dissenting colleague notes that the government "made no record on this point in the district court.” True enough. But to give the government its due, it certainly could have reasonably believed (recall that Gant was decided 13 months after Stotler's suppression motion was denied and 10 months after he was convicted by a jury) that it didn't need an extra reason to be able to use its full arsenal of evidence against Stotler during future proceedings.