fix some writing