adds ability to delete subtrees