see above comment about 0 -> max