Change private numberInRange check