number of compressions is a parameter