added the even and odd invariants