final commit added delete functionality to nodes