setLimits  - better realization.