added delete for two nodes and pretty print