began delete_node function