updates to the maximum & minimum codes