started on state transitions diagram