[refacotr] priority matrix representation