add debug message for ranging