more changes to writer