enums implemented to the state machine