EVERETT, Wash. (AP) — The City of Everett’s dress code ordinance saying bikini baristas must cover their bodies at work has been ruled unconstitutional by a federal court.

The decision comes after a lengthy legal battle brought by bikini barista business owners. The Court found that the ordinance was, at least in part, shaped by a gender-based discrimination. It is difficult to imagine, the court wrote, how the ordinance would be equally applied to men and women in practice because it prohibits clothing typically worn by women rather than men. Bikini baristas were “clearly” a target of the ordinance, the court also ruled.

The court directed the city of Everett to meet with the plaintiffs within 14 days to discuss next steps.