adding in search and find of the mins/max