compress in chunks