added shuffling to variable compression