further update on B_matrix format