fixed the offer code