updated bst from class