improving node deletion