add compress code