modify the reference file