improved stability when switching states