fixing state transition matrix