simplify code
singular discount
syntax errors