added compression for data packet