update with switch among 4 states