compress first