return min and max values for future use