return new version when writing to the stream