added changes for compressing
added changes for compressing