updated the logic around is referral