reference writing method