min to max