fixed determinant method