autoformat determination in write too