added operator functions o the statemachine class