implemented discount