* updated discount logic