new reference code fix