removing connectivity 2 nodes working, but causing unexpected results