mv reference code to ref_code