add the function,judge whether the node lost its father node