completed implementation of csr_row_mode