modified style and implemented decompression