proper node deletion