debugging range search