more range logic