improve discount debug mode