Generating new invariants and related ergodicity