Final Version 1.4

-----------------------------------------------
create control for auto discount mechanism