determinant was being modified