simplify assignment of min,max vals