added threshold print out