fix orientation of transition matrices. still need to debug remaining translation