fix and write