delete unreachable nodes
delete unreachable nodes