WILMINGTON, Del. (AP) — A judge has granted a defense motion to suppress evidence against a Delaware man who was arrested on marijuana and gun charges after being stopped by police because of window tinting on the minivan he was driving.

The judge ruled last week that Wilmington police had no probable cause to detain Bakr Dillard and call in a drug-sniffing dog after pulling him over for improper window tinting in October.

The judge said officers had no reasonable suspicion that Dillard was engaged in drug-related criminal activity after he and a passenger provided valid documentation and a computer background check yielded no issues regarding Dillard.

Officers nevertheless asked Dillard, who refused consent to search the vehicle, to step out of the car. He was then forced to wait until the dog arrived.