validated inRange works