fix up delete node (closes #6)