encapsulate compress processing