tiny modification itv_le
modified is_undef to be efficient
debug is_undef
removed duplicated total_abslocs and made it faster