upper bound changed from 256 to 255