functions used to examine transition matrices