more work on ranging