passing as param in redeem function