how to use MAT automaton - MPGH