writing references