compress sequence