remove overlapping variable degenerate cases