added stock-table-by-matrix