bugfix
- added ranges for validation