compressing data from the server