fixing and writing