took if statement of discount out of the loop, still doesnt work