compression and decompression | ScratchStats