debugging length filter