removed duplicate adding to state machine