prepare to write field