transfering ranges to min and maxs