fix max size to fit 1 byte - from 255 to 127 - to avoid negative sizes