almost done with bst