add reference code storage