try catch if building the model for continuing of tree building