uses MINT_MIN/MAX