added Determinant calculation in models