added remove_node method