adds removeNode function, but it isn't quite right...