add to state and transition