det with cofactor2