compression ratio and threshold