changed deprecated functions with current ones

* remove -> remove_node