changed BST variables to int32