implementate compress