updated to remove node