re-add removeNode functionality