before putting Start and End into the state machine