fixed compress method