add retrun value for divide_matrix_method