added threshold average acc and threshold=0 cases