Compression Logic(halfway)