maximum value should be 32 and not 31