clean up of parent node references