updated compress