added the check for compressed option