refactor discount goods