updated compress example