state machine changed