added divergencefrombestoutputthreshold