check if it is bst