updates to compression algo --David C