bst done (has main)