changed making the class invalid from a one-way to a toggle