check range is called before the validation