[5] fix logic bug in totalAndFrequencyDiscountDump();refactoring; fix misstake;