limit maximum and minimum scale