writing decompression