updated modes for writing