modify bst class