distance measure before echg flash