removes invariant sites