switch case for the compressions