discount code now being passed properly