compress & decompress process