changed the min/max to support the iUNDEF constant