should the check happen _inside_ compressType ?