final changes for referral code