object state machin state machin 