update reference code