adding debugging to delete node from tree