removeNode functioning