changed parameter of hessian_matrix_det