switch allowed states