fixing issue where checking compression type could error out because of capital letters where i thought it would always be capitalized