made isInRange