Modified for removing node itself