update is referral logic