included dead nodes in state checks to see when nodes were removed