minor writing fixes