remove reference code