writing fixes