adjust min and max codeword width