attempt compact the container