update structure switch