invariant algebraic curves