fixed spelling mistakes with state machines