min/max added