started implmenting state machine