write reference